aboutsummaryrefslogtreecommitdiff
path: root/src/nix/run.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-05-17 17:49:20 +0200
committerregnat <rg@regnat.ovh>2021-05-17 17:50:41 +0200
commitca96f5219489c1002499bfe2c580fdd458219144 (patch)
treed4b0f564f5a5da65900ab51babf5c85cc328d15e /src/nix/run.cc
parentbd6cf25952a42afabea822141798566e0f0583b3 (diff)
Split the parsing of an `App` and its resolving
That way things (like `nix flake check`) can evaluate the `app` outputs without having to build anything
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r--src/nix/run.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index b5d8ab38a..f684c5ea4 100644
--- a/src/nix/run.cc
+++ b/src/nix/run.cc
@@ -178,9 +178,7 @@ struct CmdRun : InstallableCommand, RunCommon
{
auto state = getEvalState();
- auto app = installable->toApp(*state);
-
- state->store->buildPaths(toDerivedPaths(app.context));
+ auto app = installable->toApp(*state).resolve(store);
Strings allArgs{app.program};
for (auto & i : args) allArgs.push_back(i);