From 96efb535271cab23360f9aa55e129bfc3ba85f2b Mon Sep 17 00:00:00 2001 From: Mutsuha Asada Date: Sun, 22 Sep 2024 23:17:06 +0900 Subject: [PATCH] stylelint: modernized derivation and formatted via nixfmt-rfc-style - Removed `rec` - Removed `with lib;` --- .../tools/analysis/stylelint/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/analysis/stylelint/default.nix b/pkgs/development/tools/analysis/stylelint/default.nix index 6525d524c736..ddf631ff8de5 100644 --- a/pkgs/development/tools/analysis/stylelint/default.nix +++ b/pkgs/development/tools/analysis/stylelint/default.nix @@ -1,8 +1,15 @@ -{ buildNpmPackage, fetchFromGitHub, lib }: +{ + buildNpmPackage, + fetchFromGitHub, + lib, +}: -buildNpmPackage rec { - pname = "stylelint"; +let version = "16.9.0"; +in +buildNpmPackage { + pname = "stylelint"; + inherit version; src = fetchFromGitHub { owner = "stylelint"; @@ -15,11 +22,11 @@ buildNpmPackage rec { dontNpmBuild = true; - meta = with lib; { + meta = { description = "Mighty CSS linter that helps you avoid errors and enforce conventions"; mainProgram = "stylelint"; homepage = "https://stylelint.io"; - license = licenses.mit; - maintainers = [ ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ momeemt ]; }; }