Rename 'pure' -> 'sandboxed' for consistency

This commit is contained in:
Eelco Dolstra 2022-03-31 16:12:25 +02:00
parent e279fbb16a
commit 6051cc954b
2 changed files with 4 additions and 4 deletions

View file

@ -97,7 +97,7 @@ bool DerivationType::isSandboxed() const
return true;
},
[](const ContentAddressed & ca) {
return ca.pure;
return ca.sandboxed;
},
[](const Impure &) {
return false;
@ -530,7 +530,7 @@ DerivationType BasicDerivation::type() const
if (*fixedCAOutputs.begin() != "out")
throw Error("single fixed output must be named \"out\"");
return DerivationType::ContentAddressed {
.pure = false,
.sandboxed = false,
.fixed = true,
};
}
@ -541,7 +541,7 @@ DerivationType BasicDerivation::type() const
&& deferredIAOutputs.empty()
&& impureOutputs.empty())
return DerivationType::ContentAddressed {
.pure = true,
.sandboxed = true,
.fixed = false,
};

View file

@ -102,7 +102,7 @@ struct DerivationType_InputAddressed {
};
struct DerivationType_ContentAddressed {
bool pure;
bool sandboxed;
bool fixed;
};