2023-10-09 19:29:22 +00:00
|
|
|
{ buildNpmPackage, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "terser";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "5.31.3";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terser";
|
|
|
|
repo = "terser";
|
|
|
|
rev = "v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-7B6dRulnSPD5s2w4nTXBPxJUCRvKD9++/Y1BMNm2ZwM=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
npmDepsHash = "sha256-FMd2bbMHzo38/zJuOlpzGtRPwuoxmZJF/XF2KgTP2ak=";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JavaScript parser, mangler and compressor toolkit for ES6+";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "terser";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://terser.org";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ talyz ];
|
|
|
|
};
|
|
|
|
}
|