aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/parsed-derivations.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 04:30:34 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 04:37:03 +0100
commitaeb803de9ad3cd449f7dc85588430ed5b21503eb (patch)
tree2c53d43da21c63a2dbad98bd9691e89abba91f3d /src/libstore/parsed-derivations.cc
parent6897e238bd0c730af224b928ec8746781df67ad2 (diff)
Merge pull request #8047 from lovesegfault/always-allow-substitutes
feat: add always-allow-substitutes (cherry picked from commit da2b59a08878b3c6c7074595e3b6d26b6928b4c1) Change-Id: I50481cd8fe643c673c610fec28bad84519a4d650
Diffstat (limited to 'src/libstore/parsed-derivations.cc')
-rw-r--r--src/libstore/parsed-derivations.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/parsed-derivations.cc b/src/libstore/parsed-derivations.cc
index cc4a94fab..1d900c272 100644
--- a/src/libstore/parsed-derivations.cc
+++ b/src/libstore/parsed-derivations.cc
@@ -122,7 +122,7 @@ bool ParsedDerivation::willBuildLocally(Store & localStore) const
bool ParsedDerivation::substitutesAllowed() const
{
- return getBoolAttr("allowSubstitutes", true);
+ return settings.alwaysAllowSubstitutes ? true : getBoolAttr("allowSubstitutes", true);
}
bool ParsedDerivation::useUidRange() const