summaryrefslogtreecommitdiff
path: root/nix/static.nix
blob: 5c7f528e5400ee94707408234e81edce547dcd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  pkgsCross,
  nix-filter,
  self,
}:

let
  crossPkgsFor = with pkgsCross; {
    x86_64 = musl64.pkgsStatic;
    aarch64 = aarch64-multiplatform;
  };
in
{ arch }:

let
  crossPkgs = crossPkgsFor.${arch};
in
(crossPkgs.callPackage ./package.nix {
  inherit nix-filter self;
  optimizeSize = true;
}).overrideAttrs
  (old: {
    passthru = old.passthru or { } // {
      inherit crossPkgs;
    };
  })