aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-05-18 13:54:05 +0200
committerregnat <rg@regnat.ovh>2021-05-18 13:54:05 +0200
commit59d0de6ea17b7836e7f2e169ea4c8e65b413500a (patch)
treedcd42e8b1f4e96fdbf7da67c269836bb8bf6cfd4 /src/nix
parentde77d1b9243da9538c605f824728fb414c789067 (diff)
Restore an accidentally suppressed negation
Accidentally removed in ca96f5219489c1002499bfe2c580fdd458219144. This caused `nix run` to systematically fail with ``` error: app program '/nix/store/…' is not in the Nix store ```
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/app.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/app.cc b/src/nix/app.cc
index bdc64a886..01a0064db 100644
--- a/src/nix/app.cc
+++ b/src/nix/app.cc
@@ -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;