diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-22 11:31:07 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-06-22 11:31:07 +0200 |
commit | 334e26bfc2ce82912602e8a0f9f9c7e0fb5c3221 (patch) | |
tree | 55ea4d8794ad06b317eb5aa1eb2c70c19e3f5435 | |
parent | 377345e26f1ac4bbc87bb21debcc52a1d03230aa (diff) |
nix flake check: Don't build apps
This was inconsistent since we're not building 'packages' or
'defaultPackage' either.
Closes #3726.
-rw-r--r-- | src/nix/flake.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 323810090..133e6c7e0 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -246,9 +246,7 @@ struct CmdFlakeCheck : FlakeCommand auto app = App(*state, v); for (auto & i : app.context) { auto [drvPathS, outputName] = decodeContext(i); - auto drvPath = store->parseStorePath(drvPathS); - if (!outputName.empty() && drvPath.isDerivation()) - drvPaths.push_back({drvPath}); + store->parseStorePath(drvPathS); } } catch (Error & e) { e.addPrefix(fmt("while checking the app definition '" ANSI_BOLD "%s" ANSI_NORMAL "' at %s:\n", attrPath, pos)); |