Commit df238ebe authored by Paul Meyer's avatar Paul Meyer
Browse files

valeStyles: cleanup, format, refactor

parent 53393cc1
Loading
Loading
Loading
Loading
+35 −22
Original line number Diff line number Diff line
{ 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";