83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
39 lines
956 B
Nix
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
|
|
];
|
|
};
|
|
}
|