stylelint: move to by-name and modernize derivation (#343730)

This commit is contained in:
Weijia Wang 2024-09-22 22:32:34 +02:00 committed by GitHub
commit f8a6fd59dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 8 deletions

View File

@ -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 ];
};
}

View File

@ -18690,8 +18690,6 @@ with pkgs;
strace-analyzer = callPackage ../development/tools/misc/strace-analyzer { };
stylelint = callPackage ../development/tools/analysis/stylelint { };
stylua = callPackage ../development/tools/stylua { };
summon = callPackage ../development/tools/summon { };