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:
Dmitry Bogatov 2020-08-24 21:46:48 -04:00
parent 0fa8211683
commit 55195119d5
2 changed files with 2 additions and 0 deletions

View file

@ -76,6 +76,7 @@ rec {
# uname -r
release = null;
};
isStatic = final.isWasm || final.isRedox;
kernelArch =
if final.isAarch32 then "arm"

View file

@ -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;