diff options
| author | seth <[email protected]> | 2024-10-10 07:26:29 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-10 07:26:29 -0400 |
| commit | c61b701095a1f6b52777d317275f34687e57ee3e (patch) | |
| tree | e5b1e80fa8040b593aeebb9daf83bcc9d78c6e81 /nix/static.nix | |
| parent | 4e1fab6ff1d17a0fff50e1a87af8c0bbe8c075f9 (diff) | |
rise once again my glorious creation (#51)
* git-tracker: update tips after fetch + cleanup
* nix: use nix-filter
* ci: cleanup
* crates: update
* git-tracker: don't spam log while transferring
* nix: fix static package eval
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; + }; + }) |
