about summary refs log tree commit diff
path: root/pkgs/development/tools/html-minifier/default.nix
blob: 6fd239fa816cfeec6177ef5b0072881009c367e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 ];
  };
}