nix flake check: Don't build apps

This was inconsistent since we're not building 'packages' or
'defaultPackage' either.

Closes #3726.
This commit is contained in:
Eelco Dolstra 2020-06-22 11:31:07 +02:00
parent 377345e26f
commit 334e26bfc2

View file

@ -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));