mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 16:27:36 +00:00
Distinguish pkgsStatic from pkgsMusl via stdenv.targetPlatform
This change allows derivations to distinguish dynamic musl build and static musl build in cases where upstream build system can't detect it by itself.
This commit is contained in:
parent
0fa8211683
commit
55195119d5
@ -76,6 +76,7 @@ rec {
|
||||
# uname -r
|
||||
release = null;
|
||||
};
|
||||
isStatic = final.isWasm || final.isRedox;
|
||||
|
||||
kernelArch =
|
||||
if final.isAarch32 then "arm"
|
||||
|
@ -215,6 +215,7 @@ let
|
||||
crossOverlays = [ (import ./static.nix) ];
|
||||
} // lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
||||
crossSystem = {
|
||||
isStatic = true;
|
||||
parsed = stdenv.hostPlatform.parsed // {
|
||||
abi = {
|
||||
gnu = lib.systems.parse.abis.musl;
|
||||
|
Loading…
Reference in New Issue
Block a user