Merge pull request #40898 from obsidiansystems/requireFile-without-cc

requireFile: Use stdenvNoCC
This commit is contained in:
John Ericson 2018-05-21 19:48:02 -04:00 committed by GitHub
commit 67682550ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,14 +157,14 @@ rec {
hash = if sha256 != null then sha256 else sha1; hash = if sha256 != null then sha256 else sha1;
name_ = if name == null then baseNameOf (toString url) else name; name_ = if name == null then baseNameOf (toString url) else name;
in in
stdenv.mkDerivation { stdenvNoCC.mkDerivation {
name = name_; name = name_;
outputHashMode = hashMode; outputHashMode = hashMode;
outputHashAlgo = hashAlgo; outputHashAlgo = hashAlgo;
outputHash = hash; outputHash = hash;
preferLocalBuild = true; preferLocalBuild = true;
builder = writeScript "restrict-message" '' builder = writeScript "restrict-message" ''
source ${stdenv}/setup source ${stdenvNoCC}/setup
cat <<_EOF_ cat <<_EOF_
*** ***