mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
Merge pull request #250218 from dotlambda/html-minifier-buildNpmPackage
html-minifier: use buildNpmPackage
This commit is contained in:
commit
00360b0d80
@ -67,6 +67,7 @@ mapAliases {
|
||||
git-ssb = throw "git-ssb was removed because it was broken"; # added 2023-08-21
|
||||
inherit (pkgs) graphqurl; # added 2023-08-19
|
||||
gtop = pkgs.gtop; # added 2023-07-31
|
||||
inherit (pkgs) html-minifier; # added 2023-08-19
|
||||
inherit (pkgs) htmlhint; # added 2023-08-19
|
||||
hueadm = pkgs.hueadm; # added 2023-07-31
|
||||
inherit (pkgs) hyperpotamus; # added 2023-08-19
|
||||
|
@ -147,7 +147,6 @@
|
||||
, "gulp"
|
||||
, "gulp-cli"
|
||||
, "he"
|
||||
, "html-minifier"
|
||||
, "http-server"
|
||||
, "hsd"
|
||||
, "hs-airdrop"
|
||||
|
31
pkgs/development/node-packages/node-packages.nix
generated
31
pkgs/development/node-packages/node-packages.nix
generated
@ -90971,37 +90971,6 @@ in
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
html-minifier = nodeEnv.buildNodePackage {
|
||||
name = "html-minifier";
|
||||
packageName = "html-minifier";
|
||||
version = "4.0.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/html-minifier/-/html-minifier-4.0.0.tgz";
|
||||
sha512 = "aoGxanpFPLg7MkIl/DDFYtb0iWz7jMFGqFhvEDZga6/4QTjneiD8I/NXL1x5aaoCp7FSIT6h/OhykDdPsbtMig==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."camel-case-3.0.0"
|
||||
sources."clean-css-4.2.4"
|
||||
sources."commander-2.20.3"
|
||||
sources."he-1.2.0"
|
||||
sources."lower-case-1.1.4"
|
||||
sources."no-case-2.3.2"
|
||||
sources."param-case-2.1.1"
|
||||
sources."relateurl-0.2.7"
|
||||
sources."source-map-0.6.1"
|
||||
sources."uglify-js-3.17.4"
|
||||
sources."upper-case-1.1.3"
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "Highly configurable, well-tested, JavaScript-based HTML minifier.";
|
||||
homepage = "https://kangax.github.io/html-minifier/";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
http-server = nodeEnv.buildNodePackage {
|
||||
name = "http-server";
|
||||
packageName = "http-server";
|
||||
|
30
pkgs/development/tools/html-minifier/default.nix
Normal file
30
pkgs/development/tools/html-minifier/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "html-minifier";
|
||||
version = "4.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kangax";
|
||||
repo = "html-minifier";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-OAykAqBxgr7tbeXXfSH23DALf7Eoh3VjDKNKWGAL3+A=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-VWXc/nBXgvSE/DoLHR4XTFQ5kuwWC1m0/cj1CndfPH8=";
|
||||
|
||||
npmFlags = [ "--ignore-scripts" ];
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
meta = {
|
||||
description = "Highly configurable, well-tested, JavaScript-based HTML minifier";
|
||||
homepage = "https://github.com/kangax/html-minifier";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "html-minifier";
|
||||
maintainers = with lib.maintainers; [ chris-martin ];
|
||||
};
|
||||
}
|
@ -19505,6 +19505,8 @@ with pkgs;
|
||||
|
||||
confluent-cli = callPackage ../development/tools/confluent-cli { };
|
||||
|
||||
html-minifier = callPackage ../development/tools/html-minifier { };
|
||||
|
||||
htmlhint = callPackage ../development/tools/htmlhint { };
|
||||
|
||||
htmlunit-driver = callPackage ../development/tools/selenium/htmlunit-driver { };
|
||||
|
Loading…
Reference in New Issue
Block a user