nixpkgs/pkgs/by-name/pr/protoc-gen-connect-es/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
956 B
Nix
Raw Permalink Normal View History

2023-10-15 15:39:47 -06:00
{
lib,
buildNpmPackage,
fetchFromGitHub,
npm-lockfile-fix,
}:
buildNpmPackage rec {
pname = "protoc-gen-connect-es";
2024-11-14 13:19:18 -07:00
version = "1.6.1";
2023-10-15 15:39:47 -06:00
src = fetchFromGitHub {
owner = "connectrpc";
repo = "connect-es";
rev = "refs/tags/v${version}";
2024-11-14 13:19:18 -07:00
hash = "sha256-cB1OTolnwHOqeXrj8wL5FbFnjok6s03z1jC58ABTW3o=";
2023-10-15 15:39:47 -06:00
postFetch = ''
${lib.getExe npm-lockfile-fix} $out/package-lock.json
'';
};
2024-11-14 13:19:18 -07:00
npmDepsHash = "sha256-VkvWHKERJwG7MVZ5Pb7ufRCBBWkcoMCoabtMETcPvrU=";
2023-10-15 15:39:47 -06:00
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
];
};
}