depot/third_party/nixpkgs/pkgs/development/tools/buf/default.nix
Default email 170c3b4027 Project import generated by Copybara.
GitOrigin-RevId: 7cb76200088f45cd24a9aa67fd2f9657943d78a4
2021-05-03 22:48:10 +02:00

36 lines
770 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, protobuf
}:
buildGoModule rec {
pname = "buf";
version = "0.41.0";
src = fetchFromGitHub {
owner = "bufbuild";
repo = pname;
rev = "v${version}";
sha256 = "sha256-f1UcvsXWW+fMAgTRtHkEXmUN/DTrJ/Xd+9HbR2FjFog=";
};
patches = [
./skip_test_requiring_network.patch
];
preCheck = ''
export PATH=$PATH:$GOPATH/bin
'';
nativeBuildInputs = [ protobuf ];
vendorSha256 = "sha256-XMGXVsSLEzuzujX5Fg3LLkgzyJY+nIBJEO9iI2t9eGc=";
meta = with lib; {
description = "Create consistent Protobuf APIs that preserve compatibility and comply with design best-practices";
homepage = "https://buf.build";
license = licenses.asl20;
maintainers = with maintainers; [ raboof ];
};
}