dev/list-plugins: make it a proper package

This commit is contained in:
Gaetan Lepage 2024-12-16 13:42:46 +01:00
parent 0fb43cbfb6
commit bc3b99c4d9
4 changed files with 34 additions and 8 deletions

View file

@ -0,0 +1,30 @@
{
perSystem =
{
config,
lib,
inputs',
system,
pkgs,
...
}:
{
packages.list-plugins = pkgs.writers.writePython3Bin "list-plugins" {
# Disable flake8 checks that are incompatible with the ruff ones
flakeIgnore = [
# line too long
"E501"
# line break before binary operator
"W503"
];
} (builtins.readFile ./list-plugins.py);
devshells.default.commands = [
{
name = "list-plugins";
command = ''${lib.getExe config.packages.list-plugins} "$@"'';
help = "List plugins and get implementation infos";
}
];
};
}