Merge: zmap: 4.2.0 -> 4.3.1 (#364578)
[NixPkgs.git] / pkgs / by-name / pr / protoc-gen-connect-es / package.nix
blob4d71c48dd84c51a0e7f8d1152b60fae94dcb1596
2   lib,
3   buildNpmPackage,
4   fetchFromGitHub,
5   npm-lockfile-fix,
6 }:
8 buildNpmPackage rec {
9   pname = "protoc-gen-connect-es";
10   version = "1.6.1";
12   src = fetchFromGitHub {
13     owner = "connectrpc";
14     repo = "connect-es";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-cB1OTolnwHOqeXrj8wL5FbFnjok6s03z1jC58ABTW3o=";
18     postFetch = ''
19       ${lib.getExe npm-lockfile-fix} $out/package-lock.json
20     '';
21   };
23   npmDepsHash = "sha256-VkvWHKERJwG7MVZ5Pb7ufRCBBWkcoMCoabtMETcPvrU=";
25   npmWorkspace = "packages/protoc-gen-connect-es";
27   passthru.updateScript = ./update.sh;
29   meta = with lib; {
30     description = "Protobuf plugin for generating Connect-ecompatiblenabled ECMAScript code";
31     homepage = "https://github.com/connectrpc/connect-es";
32     changelog = "https://github.com/connectrpc/connect-es/releases/tag/v${version}";
33     license = licenses.asl20;
34     maintainers = with maintainers; [
35       felschr
36       jtszalay
37     ];
38   };