From bf2a1cb3ae20494bf4d8735b817fa366edd371e6 Mon Sep 17 00:00:00 2001 From: Shelvacu Date: Sun, 2 Nov 2025 16:22:11 -0800 Subject: [PATCH] requireFile: allow substitutes This was added in f194659ddbac889755737e7e2dc09b0bb821396a 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. --- pkgs/build-support/trivial-builders/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix index 620efd0cfad2..7be896ddc4be 100644 --- a/pkgs/build-support/trivial-builders/default.nix +++ b/pkgs/build-support/trivial-builders/default.nix @@ -958,7 +958,6 @@ rec { outputHashAlgo = hashAlgo_; outputHash = hash_; preferLocalBuild = true; - allowSubstitutes = false; builder = writeScript "restrict-message" '' source ${stdenvNoCC}/setup cat <<_EOF_