depot/third_party/nixpkgs/pkgs/by-name/pr/protoc-gen-connect-es/package.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

39 lines
956 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
npm-lockfile-fix,
}:
buildNpmPackage rec {
pname = "protoc-gen-connect-es";
version = "1.4.0";
src = fetchFromGitHub {
owner = "connectrpc";
repo = "connect-es";
rev = "refs/tags/v${version}";
hash = "sha256-qCIwr4Hyc5PARUa7tMntuyWRmO6ognmtjxN0myo8FXc=";
postFetch = ''
${lib.getExe npm-lockfile-fix} $out/package-lock.json
'';
};
npmDepsHash = "sha256-OGwEpXZqzMSIES+cmseQlo6/vzkx5ztO0gM/rUB0tGY=";
npmWorkspace = "packages/protoc-gen-connect-es";
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Protobuf plugin for generating Connect-ecompatiblenabled ECMAScript code";
homepage = "https://github.com/connectrpc/connect-es";
changelog = "https://github.com/connectrpc/connect-es/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [
felschr
jtszalay
];
};
}