diff options
Diffstat (limited to 'nix/static.nix')
| -rw-r--r-- | nix/static.nix | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/nix/static.nix b/nix/static.nix index 8def285..5c7f528 100644 --- a/nix/static.nix +++ b/nix/static.nix @@ -1,4 +1,9 @@ -{ pkgsCross }: +{ + pkgsCross, + nix-filter, + self, +}: + let crossPkgsFor = with pkgsCross; { x86_64 = musl64.pkgsStatic; @@ -6,11 +11,16 @@ let }; in { arch }: + let crossPkgs = crossPkgsFor.${arch}; in -(crossPkgs.callPackage ./package.nix { optimizeSize = true; }).overrideAttrs (old: { - passthru = old.passthru or { } // { - inherit crossPkgs; - }; -}) +(crossPkgs.callPackage ./package.nix { + inherit nix-filter self; + optimizeSize = true; +}).overrideAttrs + (old: { + passthru = old.passthru or { } // { + inherit crossPkgs; + }; + }) |
