pkgsStatic: add support for non-linux host platforms

This commit is contained in:
Uri Baghin 2023-06-07 10:05:25 +10:00
parent f97423f87d
commit 42b5817e6b

View file

@ -259,10 +259,12 @@ let
overlays = [ (self': super': { overlays = [ (self': super': {
pkgsStatic = super'; pkgsStatic = super';
})] ++ overlays; })] ++ overlays;
} // lib.optionalAttrs stdenv.hostPlatform.isLinux {
crossSystem = { crossSystem = {
isStatic = true; isStatic = true;
parsed = makeMuslParsedPlatform stdenv.hostPlatform.parsed; parsed =
if stdenv.isLinux
then makeMuslParsedPlatform stdenv.hostPlatform.parsed
else stdenv.hostPlatform.parsed;
} // lib.optionalAttrs (stdenv.hostPlatform.system == "powerpc64-linux") { } // lib.optionalAttrs (stdenv.hostPlatform.system == "powerpc64-linux") {
gcc.abi = "elfv2"; gcc.abi = "elfv2";
}; };