forked from lix-project/lix
Make nix flake check
aware of devShells
This commit is contained in:
parent
43d5c5f87b
commit
797e260e3a
|
@ -33,6 +33,7 @@ The following flake output attributes must be derivations:
|
|||
* `checks.`*system*`.`*name*
|
||||
* `defaultPackage.`*system*`
|
||||
* `devShell.`*system*`
|
||||
* `devShells.`*system*`.`*name*`
|
||||
* `nixosConfigurations.`*name*`.config.system.build.toplevel
|
||||
* `packages.`*system*`.`*name*
|
||||
|
||||
|
|
|
@ -486,7 +486,7 @@ struct CmdFlakeCheck : FlakeCommand
|
|||
}
|
||||
}
|
||||
|
||||
else if (name == "packages") {
|
||||
else if (name == "packages" || name == "devShells") {
|
||||
state->forceAttrs(vOutput, pos);
|
||||
for (auto & attr : *vOutput.attrs) {
|
||||
checkSystemName(attr.name, *attr.pos);
|
||||
|
|
Loading…
Reference in a new issue