Skip to content

Commit

Permalink
pkgsStatic: add support for non-linux host platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-canva committed Jun 22, 2023
1 parent f97423f commit 42b5817
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/top-level/stage.nix
Expand Up @@ -259,10 +259,12 @@ let
overlays = [ (self': super': {
pkgsStatic = super';
})] ++ overlays;
} // lib.optionalAttrs stdenv.hostPlatform.isLinux {
crossSystem = {
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") {
gcc.abi = "elfv2";
};
Expand Down

0 comments on commit 42b5817

Please sign in to comment.