Skip to content

Commit

Permalink
Restore an accidentally suppressed negation
Browse files Browse the repository at this point in the history
Accidentally removed in ca96f52. This
caused `nix run` to systematically fail with

```
error: app program '/nix/store/…' is not in the Nix store
```
  • Loading branch information
thufschmitt committed May 18, 2021
1 parent de77d1b commit 59d0de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/app.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 59d0de6

Please sign in to comment.