Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 790 B view raw
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5}: 6 7buildNpmPackage rec { 8 pname = "html-minifier"; 9 version = "4.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "kangax"; 13 repo = "html-minifier"; 14 rev = "v${version}"; 15 hash = "sha256-OAykAqBxgr7tbeXXfSH23DALf7Eoh3VjDKNKWGAL3+A="; 16 }; 17 18 npmDepsHash = "sha256-VWXc/nBXgvSE/DoLHR4XTFQ5kuwWC1m0/cj1CndfPH8="; 19 20 npmFlags = [ "--ignore-scripts" ]; 21 22 postInstall = '' 23 find $out/lib/node_modules -xtype l -delete 24 ''; 25 26 dontNpmBuild = true; 27 28 meta = { 29 description = "Highly configurable, well-tested, JavaScript-based HTML minifier"; 30 homepage = "https://github.com/kangax/html-minifier"; 31 license = lib.licenses.mit; 32 mainProgram = "html-minifier"; 33 maintainers = with lib.maintainers; [ chris-martin ]; 34 }; 35}