summaryrefslogtreecommitdiff
path: root/nix/static.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/static.nix')
-rw-r--r--nix/static.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/nix/static.nix b/nix/static.nix
index 5a5606f..1c9ac42 100644
--- a/nix/static.nix
+++ b/nix/static.nix
@@ -1,20 +1,28 @@
{
lib,
pkgsCross,
- teawie-bot,
+ self,
}:
+
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;
- };
-})
+
+(crossPkgs.callPackage ./package.nix {
+ inherit self;
+ optimizeSize = true;
+}).overrideAttrs
+ (old: {
+ passthru = old.passthru or { } // {
+ inherit crossPkgs;
+ };
+ })