mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
69544f204d
Refactor to use buildGoModule
26 lines
597 B
Nix
26 lines
597 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "protoc-gen-go-grpc";
|
|
version = "1.2.0";
|
|
modRoot = "cmd/protoc-gen-go-grpc";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grpc";
|
|
repo = "grpc-go";
|
|
rev = "cmd/protoc-gen-go-grpc/v${version}";
|
|
sha256 = "sha256-pIHMykwwyu052rqwSV5Js0+JCKCNLrFVN6XQ3xjlEOI=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-yxOfgTA5IIczehpWMM1kreMqJYKgRT5HEGbJ3SeQ/Lg=";
|
|
|
|
meta = with lib; {
|
|
description = "The Go language implementation of gRPC. HTTP/2 based RPC";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.raboof ];
|
|
};
|
|
}
|