summaryrefslogtreecommitdiff
path: root/nix/static.nix
blob: 5a5606f6e5d253ade20a6a72bc057a2b48836ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  lib,
  pkgsCross,
  teawie-bot,
}:
let
  crossPkgsFor = with pkgsCross; {
    x86_64 = musl64.pkgsStatic;
    aarch64 = aarch64-multiplatform.pkgsStatic;
  };
in
{ arch }:
let
  crossPkgs = crossPkgsFor.${arch};
in
(crossPkgs.callPackage ./derivation.nix { optimizeSize = true; }).overrideAttrs (old: {
  passthru = old.passthru or { } // {
    inherit crossPkgs;
  };
})