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) 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;