flake/dev/generate-all-maintainers: init

Used to generate a full maintainers.nix file that can be used for RFC39
invites. We will use these invites to support requesting reviews from
maintainers.
This commit is contained in:
Austin Horstman 2025-07-03 09:56:32 -05:00
parent 95f129ca65
commit 056cd86cc0
5 changed files with 328 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ self, ... }:
{
perSystem =
{
lib,
pkgs,
...
}:
let
package = pkgs.writers.writePython3Bin "generate-all-maintainers" {
# Disable flake8 checks that are incompatible with the ruff ones
flakeIgnore = [
# Thinks shebang is a block comment
"E265"
# line too long
"E501"
# line break before binary operator
"W503"
];
} (builtins.readFile ./generate-all-maintainers.py);
in
{
packages.generate-all-maintainers = package;
checks.generate-all-maintainers-test =
pkgs.runCommand "generate-all-maintainers-test"
{
nativeBuildInputs = [ package ];
}
''
generate-all-maintainers --root ${self} --output $out
'';
devshells.default.commands = [
{
name = "generate-all-maintainers";
command = ''${lib.getExe package} "$@"'';
help = "Generate a single nix file with all `nixvim` and `nixpkgs` maintainer entries";
}
];
};
}