1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Respect build-use-substitutes

This commit is contained in:
Eelco Dolstra 2016-06-02 14:25:07 +02:00
parent 812c0dfbe2
commit 064816ab98
2 changed files with 3 additions and 1 deletions

View file

@ -3107,7 +3107,7 @@ void SubstitutionGoal::init()
if (settings.readOnlyMode)
throw Error(format("cannot substitute path %1% - no write access to the Nix store") % storePath);
subs = getDefaultSubstituters();
subs = settings.useSubstitutes ? getDefaultSubstituters() : std::list<ref<Store>>();
tryNext();
}