Restore an accidentally suppressed negation

Accidentally removed in ca96f52194. This
caused `nix run` to systematically fail with

```
error: app program '/nix/store/…' is not in the Nix store
```
This commit is contained in:
regnat 2021-05-18 13:54:05 +02:00
parent de77d1b924
commit 59d0de6ea1

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;