3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/protoc-gen-go-grpc/default.nix
Arnout Engelen 8a4abd956f
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.
2021-04-25 19:51:31 +02:00

30 lines
636 B
Nix

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