rune: fix build on darwin
[NixPkgs.git] / pkgs / development / tools / html-minifier / default.nix
blob6fd239fa816cfeec6177ef5b0072881009c367e9
1 { lib
2 , buildNpmPackage
3 , fetchFromGitHub
4 }:
6 buildNpmPackage rec {
7   pname = "html-minifier";
8   version = "4.0.0";
10   src = fetchFromGitHub {
11     owner = "kangax";
12     repo = "html-minifier";
13     rev = "v${version}";
14     hash = "sha256-OAykAqBxgr7tbeXXfSH23DALf7Eoh3VjDKNKWGAL3+A=";
15   };
17   npmDepsHash = "sha256-VWXc/nBXgvSE/DoLHR4XTFQ5kuwWC1m0/cj1CndfPH8=";
19   npmFlags = [ "--ignore-scripts" ];
21   dontNpmBuild = true;
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   };