5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
30 lines
711 B
Nix
30 lines
711 B
Nix
{ 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 ];
|
|
};
|
|
}
|