Commit bf2a1cb3 authored by Shelvacu's avatar Shelvacu Committed by Shelvacu on prophecy
Browse files

requireFile: allow substitutes

This was added in f194659d with the explanation "The requireFile
call was being substituted from the binary cache. We do not want this to happen"

As far as I can tell, no one has thought about this since. Preventing it here makes no sense:

- Anyone can "get around" this by doing `.overrideAttrs { allowSubstitutes = true; }`, and

- I *want* to cache requireFile derivations in my nixcache, and to do so I have to apply the above fix. I doubt I'm the only one.
parent 33cd71c5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -958,7 +958,6 @@ rec {
      outputHashAlgo = hashAlgo_;
      outputHash = hash_;
      preferLocalBuild = true;
      allowSubstitutes = false;
      builder = writeScript "restrict-message" ''
        source ${stdenvNoCC}/setup
        cat <<_EOF_