btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / go / go-protobuf / package.nix
blobaa8c8df12e8693acda309d8a9bc418bc8184f0cc
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "go-protobuf";
5   version = "1.5.4";
7   src = fetchFromGitHub {
8     owner = "golang";
9     repo = "protobuf";
10     rev = "v${version}";
11     sha256 = "sha256-AfyZ6xlqmrsVqtoKV1XMEo/Vba9Kpu1EgwfF6pPSZ64=";
12   };
14   vendorHash = "sha256-jGAWUgW0DA7EwmlzVxnBmtbf2dp+P4Qwcb8mTAEhUi4=";
16   meta = with lib; {
17     homepage    = "https://github.com/golang/protobuf";
18     description = " Go bindings for protocol buffer";
19     maintainers = with maintainers; [ lewo ];
20     license     = licenses.bsd3;
21   };