2024-06-20 14:57:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
buildGoModule rec {
|
2021-04-05 15:23:46 +00:00
|
|
|
pname = "protoc-gen-twirp";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "8.1.3";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twitchtv";
|
|
|
|
repo = "twirp";
|
|
|
|
rev = "v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-p3gHVHGBHakOOQnJAuMK7vZumNXN15mOABuEHUG0wNs=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
go mod init github.com/twitchtv/twirp
|
|
|
|
'';
|
|
|
|
|
|
|
|
vendorHash = null;
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"protoc-gen-twirp"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple RPC framework with protobuf service definitions";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "protoc-gen-twirp";
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/twitchtv/twirp";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
}
|