2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "protoc-gen-connect-go";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.16.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-09 19:29:22 +00:00
|
|
|
owner = "connectrpc";
|
2022-07-14 12:49:19 +00:00
|
|
|
repo = "connect-go";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-Ej8ya2sKtRVRQdMr63YpPbqzwtV0ZsqO+7xiif3gFr0=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-OKTRxExgJ2V3736fIVvQX3FEa44jGngwCi2D/uk0F58=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
subPackages = [
|
|
|
|
"cmd/protoc-gen-connect-go"
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
preCheck = ''
|
|
|
|
# test all paths
|
|
|
|
unset subPackages
|
|
|
|
'';
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "Simple, reliable, interoperable, better gRPC";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "protoc-gen-connect-go";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/connectrpc/connect-go";
|
|
|
|
changelog = "https://github.com/connectrpc/connect-go/releases/tag/v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.asl20;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ kilimnik jk ];
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|