mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
066db11215
This reverts commit4e6bf03504
, reversing changes made toafd997aab6
. Instead we propagate those frameworks from the compiler again
34 lines
889 B
Nix
34 lines
889 B
Nix
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, protobuf }:
|
|
|
|
buildGoModule rec {
|
|
pname = "prototool";
|
|
version = "1.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uber";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1ssgvhcnqffhhdx8hnk4lmklip2f6g9i7ifblywfjylb08y7iqgd";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
modSha256 = "1gc8kc9mbi3mlh48zx4lcgpsrf8z879f1qj9wfyr66s7wd1ljazg";
|
|
|
|
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;
|
|
};
|
|
}
|