about summary refs log tree commit diff
path: root/pkgs/top-level/stage.nix
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@disroot.org>2020-08-24 21:46:48 -0400
committerDmitry Bogatov <KAction@disroot.org>2020-08-27 18:36:34 -0400
commit55195119d529d65e264bcae9ce2741827272efb4 (patch)
treef75aa9ef94ab67d30abbe74bfcbd4a97fe583060 /pkgs/top-level/stage.nix
parent0fa82116835b07f958755c29ef30706eebdde66b (diff)
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.
Diffstat (limited to 'pkgs/top-level/stage.nix')
-rw-r--r--pkgs/top-level/stage.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix
index 9e07d2bf06146..58b0300cc79ce 100644
--- a/pkgs/top-level/stage.nix
+++ b/pkgs/top-level/stage.nix
@@ -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;