1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-26 04:00:59 +01:00

Merge pull request #8266 from NixOS/backport-7958-to-2.14-maintenance

[Backport 2.14-maintenance] InstallableFlake: Apply nix config in `getCursors`
This commit is contained in:
Eelco Dolstra 2023-04-28 12:02:06 +02:00 committed by GitHub
commit 4504ee2957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,8 +178,7 @@ std::pair<Value *, PosIdx> InstallableFlake::toValue(EvalState & state)
std::vector<ref<eval_cache::AttrCursor>> std::vector<ref<eval_cache::AttrCursor>>
InstallableFlake::getCursors(EvalState & state) InstallableFlake::getCursors(EvalState & state)
{ {
auto evalCache = openEvalCache(state, auto evalCache = openEvalCache(state, getLockedFlake());
std::make_shared<flake::LockedFlake>(lockFlake(state, flakeRef, lockFlags)));
auto root = evalCache->getRoot(); auto root = evalCache->getRoot();