nix flake check: Warn about deprecated nixosModule output

This commit is contained in:
Rehno Lindeque 2022-04-06 12:20:39 -04:00
parent f01e33f283
commit b9c969a866

View file

@ -508,6 +508,7 @@ struct CmdFlakeCheck : FlakeCommand
name == "defaultBundler" ? "bundlers.<system>.default" :
name == "overlay" ? "overlays.default" :
name == "devShell" ? "devShells.<system>.default" :
name == "nixosModule" ? "nixosModules.default" :
"";
if (replacement != "")
warn("flake output attribute '%s' is deprecated; use '%s' instead", name, replacement);