mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
Remove stuff we don't need yet
This commit is contained in:
parent
50156302c0
commit
5be7705ddf
1 changed files with 1 additions and 15 deletions
|
@ -505,18 +505,7 @@ EvalState::EvalState(
|
||||||
, sOutputSpecified(symbols.create("outputSpecified"))
|
, sOutputSpecified(symbols.create("outputSpecified"))
|
||||||
, repair(NoRepair)
|
, repair(NoRepair)
|
||||||
, emptyBindings(0)
|
, emptyBindings(0)
|
||||||
, rootFS(
|
, rootFS(makeFSInputAccessor(CanonPath::root))
|
||||||
makeFSInputAccessor(
|
|
||||||
CanonPath::root,
|
|
||||||
evalSettings.restrictEval || evalSettings.pureEval
|
|
||||||
? std::optional<std::set<CanonPath>>(std::set<CanonPath>())
|
|
||||||
: std::nullopt,
|
|
||||||
[](const CanonPath & path) -> RestrictedPathError {
|
|
||||||
auto modeInformation = evalSettings.pureEval
|
|
||||||
? "in pure evaluation mode (use '--impure' to override)"
|
|
||||||
: "in restricted mode";
|
|
||||||
throw RestrictedPathError("access to absolute path '%1%' is forbidden %2%", path, modeInformation);
|
|
||||||
}))
|
|
||||||
, corepkgsFS(makeMemoryInputAccessor())
|
, corepkgsFS(makeMemoryInputAccessor())
|
||||||
, internalFS(makeMemoryInputAccessor())
|
, internalFS(makeMemoryInputAccessor())
|
||||||
, derivationInternal{corepkgsFS->addFile(
|
, derivationInternal{corepkgsFS->addFile(
|
||||||
|
@ -541,9 +530,6 @@ EvalState::EvalState(
|
||||||
, baseEnv(allocEnv(128))
|
, baseEnv(allocEnv(128))
|
||||||
, staticBaseEnv{std::make_shared<StaticEnv>(false, nullptr)}
|
, staticBaseEnv{std::make_shared<StaticEnv>(false, nullptr)}
|
||||||
{
|
{
|
||||||
// For now, don't rely on FSInputAccessor for access control.
|
|
||||||
rootFS->allowPath(CanonPath::root);
|
|
||||||
|
|
||||||
countCalls = getEnv("NIX_COUNT_CALLS").value_or("0") != "0";
|
countCalls = getEnv("NIX_COUNT_CALLS").value_or("0") != "0";
|
||||||
|
|
||||||
assert(gcInitialised);
|
assert(gcInitialised);
|
||||||
|
|
Loading…
Reference in a new issue