nix-community.nixvim/flake/dev/generate-all-maintainers/default.nix
Austin Horstman 056cd86cc0 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.
2025-07-08 14:08:46 +00:00

42 lines
1.1 KiB
Nix

{ 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";
}
];
};
}