diff options
-rw-r--r-- | pkgs/development/tools/protoc-gen-twirp/default.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/tools/protoc-gen-twirp/default.nix b/pkgs/development/tools/protoc-gen-twirp/default.nix index 98045aa94c64e..4f59af22d6e9c 100644 --- a/pkgs/development/tools/protoc-gen-twirp/default.nix +++ b/pkgs/development/tools/protoc-gen-twirp/default.nix @@ -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 = "Simple RPC framework with protobuf service definitions"; mainProgram = "protoc-gen-twirp"; |