Make nix flake check aware of devShells

This commit is contained in:
regnat 2021-07-13 17:23:29 +02:00
parent 43d5c5f87b
commit 797e260e3a
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,7 @@ The following flake output attributes must be derivations:
* `checks.`*system*`.`*name* * `checks.`*system*`.`*name*
* `defaultPackage.`*system*` * `defaultPackage.`*system*`
* `devShell.`*system*` * `devShell.`*system*`
* `devShells.`*system*`.`*name*`
* `nixosConfigurations.`*name*`.config.system.build.toplevel * `nixosConfigurations.`*name*`.config.system.build.toplevel
* `packages.`*system*`.`*name* * `packages.`*system*`.`*name*

View file

@ -486,7 +486,7 @@ struct CmdFlakeCheck : FlakeCommand
} }
} }
else if (name == "packages") { else if (name == "packages" || name == "devShells") {
state->forceAttrs(vOutput, pos); state->forceAttrs(vOutput, pos);
for (auto & attr : *vOutput.attrs) { for (auto & attr : *vOutput.attrs) {
checkSystemName(attr.name, *attr.pos); checkSystemName(attr.name, *attr.pos);