Open MangoIV opened 7 months ago
That's a very good observation, thank you! I don't have a clear answer yet how I can/want to solve this.
https://github.com/wireapp/wire-server/blob/develop/nix/pkg-info.nix https://github.com/wireapp/wire-server/blob/develop/nix/all-toplevel-derivations.nix https://github.com/wireapp/wire-server/blob/develop/hack/bin/Sbom.hs
I’ve made this abomination a while ago. It works but it probably needs a ton of adjustments if you want to use it for anything but wireserver
It goes what I described above though.
because pkgs is actually not a tree but a graph so you
will go around in circle
You could use https://nix.dev/manual/nix/2.18/language/builtins#builtins-genericClosure for this
That’s not the only problem though. Nix will also memory leak like crazy. So probably not going to work anyway. You need to be careful what to recurse on. I think I also excluded a couple of attrsets to not look at.
the issue is as follows:
mkDerivation
buildsdrvPath
so we can query the dependenciesthis package clearly depends on
pkgs.hello
but bombon doesn't recognize that.I have not found a solution but a very sad one:
drvPath
of the derivation