diff options
author | regnat <rg@regnat.ovh> | 2021-05-17 17:49:20 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-05-17 17:50:41 +0200 |
commit | ca96f5219489c1002499bfe2c580fdd458219144 (patch) | |
tree | d4b0f564f5a5da65900ab51babf5c85cc328d15e /src/nix/bundle.cc | |
parent | bd6cf25952a42afabea822141798566e0f0583b3 (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/bundle.cc')
-rw-r--r-- | src/nix/bundle.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nix/bundle.cc b/src/nix/bundle.cc index 53dccc63a..88bc3d1d1 100644 --- a/src/nix/bundle.cc +++ b/src/nix/bundle.cc @@ -69,8 +69,7 @@ struct CmdBundle : InstallableCommand { auto evalState = getEvalState(); - auto app = installable->toApp(*evalState); - store->buildPaths(toDerivedPaths(app.context)); + auto app = installable->toApp(*evalState).resolve(store); auto [bundlerFlakeRef, bundlerName] = parseFlakeRefWithFragment(bundler, absPath(".")); const flake::LockFlags lockFlags{ .writeLockFile = false }; |