Skip to content

Instantly share code, notes, and snippets.

@LnL7

LnL7/nix.patch Secret

Created January 3, 2020 15:11
Show Gist options
  • Save LnL7/03c592e108f6fb8849a3b97f159bb000 to your computer and use it in GitHub Desktop.
Save LnL7/03c592e108f6fb8849a3b97f159bb000 to your computer and use it in GitHub Desktop.
diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix
index 33ec396e5d2..6bc7ebbd600 100644
--- a/pkgs/tools/package-management/nix/default.nix
+++ b/pkgs/tools/package-management/nix/default.nix
@@ -170,7 +170,7 @@ in rec {
# Nix1 has the perl bindings by default, so no need to build the manually.
includesPerl = true;
- inherit storeDir stateDir confDir boehmgc;
+ inherit storeDir stateDir confDir stdenv boehmgc;
};
nixStable = callPackage common (rec {
@@ -180,7 +180,7 @@ in rec {
sha256 = "bb6578e9f20eebab6d78469ecc59c450ac54f276e5a86a882015d98fecb1bc7b";
};
- inherit storeDir stateDir confDir boehmgc;
+ inherit storeDir stateDir confDir stdenv boehmgc;
} // stdenv.lib.optionalAttrs stdenv.cc.isClang {
stdenv = llvmPackages_6.stdenv;
});
@@ -196,7 +196,7 @@ in rec {
};
fromGit = true;
- inherit storeDir stateDir confDir boehmgc;
+ inherit storeDir stateDir confDir stdenv boehmgc;
});
nixFlakes = lib.lowPrio (callPackage common rec {
@@ -210,7 +210,7 @@ in rec {
};
fromGit = true;
- inherit storeDir stateDir confDir boehmgc;
+ inherit storeDir stateDir confDir stdenv boehmgc;
});
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fe832c91028..c0481fb7113 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24762,6 +24762,7 @@ in
storeDir = config.nix.storeDir or "/nix/store";
stateDir = config.nix.stateDir or "/nix/var";
boehmgc = boehmgc.override { enableLargeConfig = true; };
+ stdenv = if stdenv.cc.isGNU then gcc8Stdenv else stdenv;
})
nix
nix1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment