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-09-26 11:04:55 +00:00
|
|
|
version = "1.17.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-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-GF7J21Y27LmKuDjuk2omQo2xV5pDo2GQXyu9SLwG0fs=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
vendorHash = "sha256-j5T1Ho3K0kPZOo5LA6Md06W/gF6DmEElGt9BvceBtTo=";
|
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
|
|
|
};
|
|
|
|
}
|