15 src = fetchFromGitHub {
19 hash = "sha256-sMLQSB1+ux/ya/J22KGojlAxWhtPQdk22KdHy43zdyg=";
22 npmDepsHash = "sha256-/Xb8DT7vSzZPEd+Z+z1BlFnrOeOwGP+nGv2K9iz6lKI=";
25 cp ${./package-lock.json} package-lock.json
31 updateScript = ./update.sh;
33 version = testers.testVersion { package = uglify-js; };
35 simple = testers.testEqualContents {
36 assertion = "uglify-js minifies a basic js file";
37 expected = writeText "expected" ''
43 nativeBuildInputs = [ uglify-js ];
44 base = writeText "base" ''
45 console . log ( ( 1 ) ) ;
56 homepage = "https://github.com/mishoo/UglifyJS";
57 changelog = "https://github.com/mishoo/UglifyJS/releases/tag/v" + version;
58 description = "JavaScript parser / mangler / compressor / beautifier toolkit";
59 mainProgram = "uglifyjs";
60 license = lib.licenses.bsd2;
61 maintainers = with lib.maintainers; [ lelgenio ];