aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-03-06 11:08:51 +0100
committerGitHub <noreply@github.com>2023-03-06 11:08:51 +0100
commit3f4dc61f7f3362978fd16b603f9563df890f26d1 (patch)
treec7878b547b7a8f2a9ae4cf67a4ae19a8b3314ac0
parent92771ca1be250122f4f00cb7f83b9f4a5195ac49 (diff)
parent77bb950566d4e3b0d98be73a270805ba543f9432 (diff)
Merge pull request #7958 from amesgen/issue-7955
InstallableFlake: Apply nix config in `getCursors`
-rw-r--r--src/libcmd/installable-flake.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcmd/installable-flake.cc b/src/libcmd/installable-flake.cc
index 60a97deaf..7b0cc376d 100644
--- a/src/libcmd/installable-flake.cc
+++ b/src/libcmd/installable-flake.cc
@@ -178,8 +178,7 @@ std::pair<Value *, PosIdx> InstallableFlake::toValue(EvalState & state)
std::vector<ref<eval_cache::AttrCursor>>
InstallableFlake::getCursors(EvalState & state)
{
- auto evalCache = openEvalCache(state,
- std::make_shared<flake::LockedFlake>(lockFlake(state, flakeRef, lockFlags)));
+ auto evalCache = openEvalCache(state, getLockedFlake());
auto root = evalCache->getRoot();