Skip to content

Commit

Permalink
Merge pull request #249985 from dotlambda/clean-css-cli-buildNpmPackage
Browse files Browse the repository at this point in the history
clean-css-cli: use buildNpmPackage
  • Loading branch information
dotlambda authored Aug 20, 2023
2 parents cf970f1 + 8801a2f commit 4ca23fe
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 51 deletions.
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ mapAliases {
bitwarden-cli = pkgs.bitwarden-cli; # added 2023-07-25
inherit (pkgs) carto; # added 2023-08-17
castnow = pkgs.castnow; # added 2023-07-30
inherit (pkgs) clean-css-cli; # added 2023-08-18
eask = pkgs.eask; # added 2023-08-17
inherit (pkgs.elmPackages) elm-test;
eslint_d = pkgs.eslint_d; # Added 2023-05-26
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/main-programs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
carbon-now-cli = "carbon-now";
cdk8s-cli = "cdk8s";
cdktf-cli = "cdktf";
clean-css-cli = "cleancss";
clipboard-cli = "clipboard";
clubhouse-cli = "club";
conventional-changelog-cli = "conventional-changelog";
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
, "carbon-now-cli"
, "cdk8s-cli"
, "cdktf-cli"
, "clean-css-cli"
, "clipboard-cli"
, "clubhouse-cli"
, "coc-clangd"
Expand Down
49 changes: 0 additions & 49 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions pkgs/development/tools/clean-css-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
pname = "clean-css-cli";
version = "5.6.2";

src = fetchFromGitHub {
owner = "clean-css";
repo = "clean-css-cli";
rev = "v${version}";
hash = "sha256-ONWJn6mehXeNwRVEEM+Ad/heXwNWC9E9yA5eUQsi98A=";
};

npmDepsHash = "sha256-eVd6YSTHhp6qzGYn5PlikUgjNS+GJoRwfm6KPrEJKGE=";

dontNpmBuild = true;

meta = {
changelog = "https://github.com/clean-css/clean-css-cli/blob/${src.rev}/History.md";
description = "Command-line interface to the clean-css CSS optimization library";
homepage = "https://github.com/clean-css/clean-css-cli";
license = lib.licenses.mit;
mainProgram = "cleancss";
maintainers = with lib.maintainers; [ ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18830,6 +18830,8 @@ with pkgs;

cl-launch = callPackage ../development/tools/misc/cl-launch { };

clean-css-cli = callPackage ../development/tools/clean-css-cli { };

cloud-nuke = callPackage ../development/tools/cloud-nuke { };

cloudcompare = libsForQt5.callPackage ../applications/graphics/cloudcompare { };
Expand Down

0 comments on commit 4ca23fe

Please sign in to comment.