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
commit 57f321f3ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;