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

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
This commit is contained in:
Eelco Dolstra 2020-09-25 10:11:36 +02:00
parent dc4a280318
commit 8f50523c38
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -534,8 +534,7 @@ std::pair<Value *, Pos> InstallableFlake::toValue(EvalState & state)
std::vector<std::pair<std::shared_ptr<eval_cache::AttrCursor>, std::string>>
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();