aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
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;