depot/third_party/nixpkgs/pkgs/development/tools/misc/terser/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

23 lines
596 B
Nix

{ buildNpmPackage, fetchFromGitHub, lib }:
buildNpmPackage rec {
pname = "terser";
version = "5.31.1";
src = fetchFromGitHub {
owner = "terser";
repo = "terser";
rev = "v${version}";
hash = "sha256-yKJPV6JGZTNCMjHh8v+MgnhaMuGF5cVHGEIJei896Hg=";
};
npmDepsHash = "sha256-E50RrEllhmluWe726KRmD2pcXbD2bSkWz8x6FeF+kOU=";
meta = with lib; {
description = "JavaScript parser, mangler and compressor toolkit for ES6+";
mainProgram = "terser";
homepage = "https://terser.org";
license = licenses.bsd2;
maintainers = with maintainers; [ talyz ];
};
}