Skip to content

Commit

Permalink
Merge pull request #318255 from katexochen/protoc-gen-twirp/mods
Browse files Browse the repository at this point in the history
protoc-gen-twirp: migrate to buildGoModule
  • Loading branch information
Aleksanaa authored Jun 14, 2024
2 parents f07d923 + 3a19eca commit e0a105d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkgs/development/tools/protoc-gen-twirp/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:

buildGoPackage rec {
buildGoModule rec {
pname = "protoc-gen-twirp";
version = "8.1.3";

Expand All @@ -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";
Expand Down

0 comments on commit e0a105d

Please sign in to comment.