depot/pkgs/development/tools/protoc-gen-twirp/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

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 ];
};
}