diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-05-18 14:29:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 14:29:24 +0200 |
commit | 57f321f3ce311228ad9ab7eac8b108aeb4fa4026 (patch) | |
tree | dcd42e8b1f4e96fdbf7da67c269836bb8bf6cfd4 /src | |
parent | de77d1b9243da9538c605f824728fb414c789067 (diff) | |
parent | 59d0de6ea17b7836e7f2e169ea4c8e65b413500a (diff) |
Merge pull request #4828 from NixOS/ca/fix-nix-run
Restore an accidentally suppressed negation
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/app.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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> 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; |