diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-04 16:04:41 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-07-02 15:18:41 +0200 |
commit | 2459458bc8257734ca78cb7a2db3df20bd730ec0 (patch) | |
tree | 20d157ed4279cd06947fbb18750b7b280576bf33 /nix/libstore/misc.hh | |
parent | e531520ddcd54903bbea0f3ce08dfbed830f40aa (diff) | |
download | guix-2459458bc8257734ca78cb7a2db3df20bd730ec0.tar.gz |
Allow substitutes for builds that have preferLocalBuild set
Not substituting builds with "preferLocalBuild = true" was a bad idea, because it didn't take the cost of dependencies into account. For instance, if we can't substitute a fetchgit call, then we have to download/build git and all its dependencies. Partially reverts 5558652709f27e8a887580b77b93c705659d7a4b and adds a new derivation attribute "allowSubstitutes" to specify whether a derivation may be substituted.
Diffstat (limited to 'nix/libstore/misc.hh')
-rw-r--r-- | nix/libstore/misc.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nix/libstore/misc.hh b/nix/libstore/misc.hh index 144cb7f457..d3e31d51f7 100644 --- a/nix/libstore/misc.hh +++ b/nix/libstore/misc.hh @@ -34,5 +34,7 @@ void queryMissing(StoreAPI & store, const PathSet & targets, bool willBuildLocally(const Derivation & drv); +bool substitutesAllowed(const Derivation & drv); + } |