aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-14 22:45:33 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-14 22:45:33 +0100
commit46a284263fe03bc81950586376b9be43d1b5c713 (patch)
treefdcebfec77287da10f4089d4674457b5f07a67b0 /src/nix
parent6208d24c383e95a50e873ed987643ffa329f9428 (diff)
Fix build
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/flake.cc4
-rw-r--r--src/nix/installables.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 8945d8829..9c94c59fc 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -134,9 +134,9 @@ static void enumerateOutputs(EvalState & state, Value & vFlake,
auto aOutputs = vFlake.attrs->get(state.symbols.create("outputs"));
assert(aOutputs);
- state.forceAttrs(*(*aOutputs)->value);
+ state.forceAttrs(*aOutputs->value);
- for (auto & attr : *((*aOutputs)->value->attrs))
+ for (auto & attr : *aOutputs->value->attrs)
callback(attr.name, *attr.value, *attr.pos);
}
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 39ce9b38f..071edf432 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -330,9 +330,9 @@ Value * InstallableFlake::getFlakeOutputs(EvalState & state, const flake::Locked
auto aOutputs = vFlake->attrs->get(state.symbols.create("outputs"));
assert(aOutputs);
- state.forceValue(*(*aOutputs)->value);
+ state.forceValue(*aOutputs->value);
- return (*aOutputs)->value;
+ return aOutputs->value;
}
std::tuple<std::string, FlakeRef, flake::EvalCache::Derivation> InstallableFlake::toDerivation()