mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
1be3d412c0
`buildGoModule` and `buildGoPackage` by default inherit the `platforms` from go. That seems better than explicitly configuring `platforms.all`. There are also many packages that specify 'linux + darwin' - this is even suggested in the documentation. We might also want to update those, but let's do the noncontroversial change first.
29 lines
605 B
Nix
29 lines
605 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 ];
|
|
};
|
|
}
|