1{ buildGoModule, fetchFromGitHub, lib }:
2
3buildGoModule rec {
4 pname = "esbuild";
5 version = "0.18.0";
6
7 src = fetchFromGitHub {
8 owner = "evanw";
9 repo = "esbuild";
10 rev = "v${version}";
11 hash = "sha256-3tZbYLYuT1F/OumxlpcXmGTyBPCeK21Le35zxLGbQuw=";
12 };
13
14 vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
15
16 subPackages = [ "cmd/esbuild" ];
17
18 ldflags = [ "-s" "-w" ];
19
20 meta = with lib; {
21 description = "An extremely fast JavaScript bundler";
22 homepage = "https://esbuild.github.io";
23 changelog = "https://github.com/evanw/esbuild/blob/v${version}/CHANGELOG.md";
24 license = licenses.mit;
25 maintainers = with maintainers; [ lucus16 marsam undefined-moe ];
26 };
27}