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.
wip/yesman
Dmitry Bogatov 4 years ago
parent 0fa8211683
commit 55195119d5
  1. 1
      lib/systems/default.nix
  2. 1
      pkgs/top-level/stage.nix

@ -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…
Cancel
Save