Skip to content

Commit

Permalink
Merge pull request #4828 from NixOS/ca/fix-nix-run
Browse files Browse the repository at this point in the history
Restore an accidentally suppressed negation
  • Loading branch information
edolstra authored May 18, 2021
2 parents de77d1b + 59d0de6 commit 57f321f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ App UnresolvedApp::resolve(ref<Store> store)

auto builtContext = build(store, Realise::Outputs, installableContext);
res.program = resolveString(*store, unresolved.program, builtContext);
if (store->isInStore(res.program))
if (!store->isInStore(res.program))
throw Error("app program '%s' is not in the Nix store", res.program);

return res;
Expand Down

0 comments on commit 57f321f

Please sign in to comment.