diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index ca1a38c4ab4..6d0e07d60f9 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -3,7 +3,7 @@ , stateDir ? "/nix/var" , confDir ? "/etc" , boehmgc -, llvmPackages_6 +, stdenv, llvmPackages_6 }: let @@ -167,7 +167,7 @@ in rec { inherit storeDir stateDir confDir boehmgc; }; - nixStable = callPackage common rec { + nixStable = callPackage common (rec { name = "nix-2.2.2"; src = fetchurl { url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz"; @@ -175,9 +175,9 @@ in rec { }; inherit storeDir stateDir confDir boehmgc; - + } // stdenv.lib.optionalAttrs stdenv.cc.isClang { stdenv = llvmPackages_6.stdenv; - }; + }); nixUnstable = lib.lowPrio (callPackage common rec { name = "nix-2.3${suffix}"; @@ -191,8 +191,6 @@ in rec { fromGit = true; inherit storeDir stateDir confDir boehmgc; - - stdenv = llvmPackages_6.stdenv; }); }