depot/third_party/nixpkgs/pkgs/development/tools/buf/default.nix
Default email 48af15f7a5 Project import generated by Copybara.
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
2021-03-20 04:20:00 +00:00

36 lines
770 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, protobuf
}:
buildGoModule rec {
pname = "buf";
version = "0.40.0";
src = fetchFromGitHub {
owner = "bufbuild";
repo = pname;
rev = "v${version}";
sha256 = "sha256-N6o+1cfer8rgKJ3+CL25axJSjGV/YSG1sLIHXJzsC6o=";
};
patches = [
./skip_test_requiring_network.patch
];
preCheck = ''
export PATH=$PATH:$GOPATH/bin
'';
nativeBuildInputs = [ protobuf ];
vendorSha256 = "sha256-vl+WqtpegoAvylx/lcyfJk8DAOub8U4Lx3Pe3eW4M/E=";
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 ];
};
}