1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

needsNetworkAccess() -> isSandboxed()

This commit is contained in:
Eelco Dolstra 2022-03-31 16:06:40 +02:00
parent 4e043c2f32
commit e279fbb16a
4 changed files with 17 additions and 15 deletions

View file

@ -90,17 +90,17 @@ bool DerivationType::hasKnownOutputPaths() const
}
bool DerivationType::needsNetworkAccess() const
bool DerivationType::isSandboxed() const
{
return std::visit(overloaded {
[](const InputAddressed & ia) {
return false;
return true;
},
[](const ContentAddressed & ca) {
return !ca.pure;
return ca.pure;
},
[](const Impure &) {
return true;
return false;
},
}, raw());
}