depot/third_party/nixpkgs/pkgs/development/tools/protoc-gen-twirp/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
691 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "protoc-gen-twirp";
version = "8.1.3";
src = fetchFromGitHub {
owner = "twitchtv";
repo = "twirp";
rev = "v${version}";
sha256 = "sha256-p3gHVHGBHakOOQnJAuMK7vZumNXN15mOABuEHUG0wNs=";
};
postPatch = ''
go mod init github.com/twitchtv/twirp
'';
vendorHash = null;
subPackages = [
"protoc-gen-twirp"
];
meta = with lib; {
description = "Simple RPC framework with protobuf service definitions";
mainProgram = "protoc-gen-twirp";
homepage = "https://github.com/twitchtv/twirp";
license = licenses.asl20;
maintainers = with maintainers; [ jojosch ];
};
}