mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 00:12:43 +01:00
Support allowSubstitutes attribute in structured attribute derivations
Hopefully fixes #3081 (didn't test).
This commit is contained in:
parent
cec50290bf
commit
e07ec8d27e
6 changed files with 11 additions and 10 deletions
|
|
@ -108,4 +108,9 @@ bool ParsedDerivation::willBuildLocally() const
|
|||
return getBoolAttr("preferLocalBuild") && canBuildLocally();
|
||||
}
|
||||
|
||||
bool ParsedDerivation::substitutesAllowed() const
|
||||
{
|
||||
return getBoolAttr("allowSubstitutes", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue