diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index 2ec56c94763a..73da775f7f56 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/pkgs/build-support/trivial-builders.nix @@ -157,14 +157,14 @@ rec { hash = if sha256 != null then sha256 else sha1; name_ = if name == null then baseNameOf (toString url) else name; in - stdenv.mkDerivation { + stdenvNoCC.mkDerivation { name = name_; outputHashMode = hashMode; outputHashAlgo = hashAlgo; outputHash = hash; preferLocalBuild = true; builder = writeScript "restrict-message" '' - source ${stdenv}/setup + source ${stdenvNoCC}/setup cat <<_EOF_ ***