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; }; })