mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
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:
parent
95f129ca65
commit
056cd86cc0
5 changed files with 328 additions and 0 deletions
42
flake/dev/generate-all-maintainers/default.nix
Normal file
42
flake/dev/generate-all-maintainers/default.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue