mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* Add an option ‘build-use-substitutes’, which can be set to ‘false’
to disable use of substitutes; i.e., force building from source. Fixes Nix/221.
This commit is contained in:
parent
59a26360c7
commit
db5b86ef13
6 changed files with 23 additions and 4 deletions
|
@ -962,7 +962,7 @@ void DerivationGoal::haveDerivation()
|
|||
foreach (PathSet::iterator, i, invalidOutputs)
|
||||
/* Don't bother creating a substitution goal if there are no
|
||||
substitutes. */
|
||||
if (worker.store.hasSubstitutes(*i))
|
||||
if (queryBoolSetting("build-use-substitutes", true) && worker.store.hasSubstitutes(*i))
|
||||
addWaitee(worker.makeSubstitutionGoal(*i));
|
||||
|
||||
if (waitees.empty()) /* to prevent hang (no wake-up event) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue