protoc-gen-twirp: migrate to buildGoModule
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "protoc-gen-twirp";
|
||||
version = "8.1.3";
|
||||
|
||||
@@ -11,14 +11,16 @@ buildGoPackage rec {
|
||||
sha256 = "sha256-p3gHVHGBHakOOQnJAuMK7vZumNXN15mOABuEHUG0wNs=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/twitchtv/twirp";
|
||||
postPatch = ''
|
||||
go mod init github.com/twitchtv/twirp
|
||||
'';
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
subPackages = [
|
||||
"protoc-gen-twirp"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple RPC framework with protobuf service definitions";
|
||||
mainProgram = "protoc-gen-twirp";
|
||||
|
||||
Reference in New Issue
Block a user