1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{ pkgsCross }: let crossPkgsFor = with pkgsCross; { x86_64 = musl64.pkgsStatic; aarch64 = aarch64-multiplatform; }; in { arch }: let crossPkgs = crossPkgsFor.${arch}; in (crossPkgs.callPackage ./package.nix { optimizeSize = true; }).overrideAttrs (old: { passthru = old.passthru or { } // { inherit crossPkgs; }; })