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-01-13 08:15:51 +00:00
|
|
|
version = "1.14.0";
|
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-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-lb0kMIcVOZz/8s7exsrv4I7PuF/mIzrZ6TSv4cii1UY=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-tiTdGoAuY+DxYvwI1glX7LqgwOI3hCfrgszV81cxkE0=";
|
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";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|