From 8f50523c38853137f75a1b279f5367bf62c12335 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Sep 2020 10:11:36 +0200 Subject: [PATCH] nix run: Support overriding module options E.g. $ nix run /home/eelco/Tweag/nix-ux/configs#hello --argstr who Everybody warning: creating lock file '/tmp/nix-shell.Jr8WDs/nix-9520-0/flake.lock' Hello Everybody --- src/nix/installables.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nix/installables.cc b/src/nix/installables.cc index e2ee9f52f..d12a8f866 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -534,8 +534,7 @@ std::pair InstallableFlake::toValue(EvalState & state) std::vector, std::string>> InstallableFlake::getCursors(EvalState & state) { - auto evalCache = openEvalCache(state, - std::make_shared(lockFlake(state, flakeRef, lockFlags))); + auto evalCache = openEvalCache(state, getLockedFlake()); auto root = evalCache->getRoot();