protoc-gen-go-grpc: init at 1.1.0
Using buildGoModule did not work for this package, and produced the error "main module (google.golang.org/grpc) does not contain package google.golang.org/grpc/cmd/protoc-gen-go-grpc". Since buildGoModule and buildGoPackage both seem in common use and both have their advantages (https://github.com/NixOS/nixpkgs/issues/84826) just using buildGoPackage seems like a neat solution here.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{ buildGoPackage
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "protoc-gen-go-grpc";
|
||||
version = "1.1.0";
|
||||
|
||||
goPackagePath = "google.golang.org/grpc";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "grpc";
|
||||
repo = "grpc-go";
|
||||
rev = "cmd/protoc-gen-go-grpc/v${version}";
|
||||
sha256 = "14rjb8j6fm07rnns3dpwgkzf3y6rmia6i9n7ns6cldc5mbf7nwi3";
|
||||
};
|
||||
|
||||
subPackages = [ "cmd/protoc-gen-go-grpc" ];
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Go language implementation of gRPC. HTTP/2 based RPC";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.raboof ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user