summaryrefslogtreecommitdiff
path: root/nix/static.nix
blob: 1c9ac42769840089b72c40c844572a8f41209399 (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
27
28
{
  lib,
  pkgsCross,
  self,
}:

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

{ arch }:

let
  crossPkgs = crossPkgsFor.${arch};
in

(crossPkgs.callPackage ./package.nix {
  inherit self;
  optimizeSize = true;
}).overrideAttrs
  (old: {
    passthru = old.passthru or { } // {
      inherit crossPkgs;
    };
  })