1{ lib
2, buildNpmPackage
3, fetchFromGitHub
4}:
5
6buildNpmPackage rec {
7 pname = "html-minifier";
8 version = "4.0.0";
9
10 src = fetchFromGitHub {
11 owner = "kangax";
12 repo = "html-minifier";
13 rev = "v${version}";
14 hash = "sha256-OAykAqBxgr7tbeXXfSH23DALf7Eoh3VjDKNKWGAL3+A=";
15 };
16
17 npmDepsHash = "sha256-VWXc/nBXgvSE/DoLHR4XTFQ5kuwWC1m0/cj1CndfPH8=";
18
19 npmFlags = [ "--ignore-scripts" ];
20
21 dontNpmBuild = true;
22
23 meta = {
24 description = "Highly configurable, well-tested, JavaScript-based HTML minifier";
25 homepage = "https://github.com/kangax/html-minifier";
26 license = lib.licenses.mit;
27 mainProgram = "html-minifier";
28 maintainers = with lib.maintainers; [ chris-martin ];
29 };
30}