blob: 63a805175dd8e8363b49e4fc335c60c26310285d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ 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 ];
vendorSha256 = "19wza3vkkda44cng8m6f9y7qpzrgk2adyjmcafk17v4773rxlncf";
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;
};
}
|