mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Move structured attrs handling into a separate class
This is primarily because Derivation::{can,will}BuildLocally() depends on attributes like preferLocalBuild and requiredSystemFeatures, but it can't handle them properly because it doesn't have access to the structured attributes.
This commit is contained in:
parent
99d4bb2d4c
commit
7ae7a38c9a
5 changed files with 145 additions and 116 deletions
|
@ -56,14 +56,10 @@ struct BasicDerivation
|
|||
the given derivation. */
|
||||
Path findOutput(const string & id) const;
|
||||
|
||||
bool willBuildLocally() const;
|
||||
|
||||
bool substitutesAllowed() const;
|
||||
|
||||
bool isBuiltin() const;
|
||||
|
||||
bool canBuildLocally() const;
|
||||
|
||||
/* Return true iff this is a fixed-output derivation. */
|
||||
bool isFixedOutput() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue