2021-03-20 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "buf";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "0.41.0";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bufbuild";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "sha256-f1UcvsXWW+fMAgTRtHkEXmUN/DTrJ/Xd+9HbR2FjFog=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./skip_test_requiring_network.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$PATH:$GOPATH/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ protobuf ];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
vendorSha256 = "sha256-XMGXVsSLEzuzujX5Fg3LLkgzyJY+nIBJEO9iI2t9eGc=";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|