Merge pull request #4828 from NixOS/ca/fix-nix-run

Restore an accidentally suppressed negation
This commit is contained in:
Eelco Dolstra
2021-05-18 14:29:24 +02:00
committed by GitHub
+1 -1
View File
@@ -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;