prototool: init at 1.8.0 (#63887)

This commit is contained in:
Mario Rodas 2019-06-30 22:50:51 -05:00 committed by Wael Nasreddine
parent e78e2cfc08
commit e117e6dd26
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, protobuf }:
buildGoModule rec {
pname = "prototool";
version = "1.8.0";
src = fetchFromGitHub {
owner = "uber";
repo = pname;
rev = "v${version}";
sha256 = "0m6g5p3jyf0ja5j9rqmw8mhipdqxk7rcxm0plmh65bxk1n22fzjc";
};
nativeBuildInputs = [ makeWrapper ];
modSha256 = "0l4nqb1c1lqqk70l9qwib1azavxlwghi2fv5siwrr5zw4jysz5ml";
postInstall = ''
wrapProgram "$out/bin/prototool" \
--prefix PROTOTOOL_PROTOC_BIN_PATH : "${protobuf}/bin/protoc" \
--prefix PROTOTOOL_PROTOC_WKT_PATH : "${protobuf}/include"
'';
subPackages = [ "cmd/prototool" ];
meta = with lib; {
homepage = "https://github.com/uber/prototool";
description = "Your Swiss Army Knife for Protocol Buffers";
maintainers = [ maintainers.marsam ];
license = licenses.mit;
platforms = platforms.unix;
};
}

View File

@ -15896,6 +15896,8 @@ in
procdump = callPackage ../os-specific/linux/procdump { }; procdump = callPackage ../os-specific/linux/procdump { };
prototool = callPackage ../development/tools/prototool { };
qemu_kvm = lowPrio (qemu.override { hostCpuOnly = true; }); qemu_kvm = lowPrio (qemu.override { hostCpuOnly = true; });
# See `xenPackages` source for explanations. # See `xenPackages` source for explanations.