valeStyles: cleanup, format, refactor

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2024-09-27 13:49:56 +02:00
parent 53393cc14c
commit df238ebe1d

View file

@ -1,12 +1,19 @@
{ lib, stdenvNoCC, fetchFromGitHub, fetchzip, nix-update-script }:
{
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:
let
buildStyle =
{ name
, stylePath ? name
, ...
{
name,
stylePath ? name,
...
}@args:
stdenvNoCC.mkDerivation ({
stdenvNoCC.mkDerivation (
{
pname = "vale-style-${lib.toLower name}";
dontConfigure = true;
@ -27,8 +34,14 @@ let
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ katexochen ];
} // (args.meta or { });
} // removeAttrs args [ "meta" "name" ]);
}
// removeAttrs args [
"meta"
"name"
]
);
in
{
alex = buildStyle rec {
name = "alex";