mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
needsNetworkAccess() -> isSandboxed()
This commit is contained in:
parent
4e043c2f32
commit
e279fbb16a
4 changed files with 17 additions and 15 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue