nix-pkgset
nix-pkgset copied to clipboard
providing static packages within the set
In my package set, I have two packages A and B, where B should depend pkgsStatic.A. It there a way to archive this with nix-pkgset? I'm using flakes.
nix-pkgset no longer generates static/cross variants as it was too convoluted for me to maintain. You could try and generate your own static variant like:
foo = nix-pkgset.lib.makePackageSet "foo" pkgs.newScope (self: {
fooStatic = nix-pkgset.lib.makePackageSet "foo" pkgs.pkgsStatic.newScope (self: {
A = self.callPackage ./A.nix {};
});
A = self.callPackage ./A.nix {};
B = self.callPackage ./B.nix { A = self.fooStatic.A; };
});
But that most likely won't be spliced correctly if you want to do cross-compilation.