1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "protolock";
5 version = "0.17.0";
6
7 src = fetchFromGitHub {
8 owner = "nilslice";
9 repo = "protolock";
10 rev = "v${version}";
11 sha256 = "sha256-+7kU4nCBwCA6mnjFrejPrIILYUSfYpq13d+0MmNZoBg=";
12 };
13
14 vendorHash = "sha256-lJhtZQ9S7/h3dSZ72O2l8oHHf3tEmGKC2PPAms09Itc=";
15
16 postInstall = ''
17 rm $out/bin/plugin*
18 '';
19
20 meta = with lib; {
21 description = "Protocol Buffer companion tool. Track your .proto files and prevent changes to messages and services which impact API compatibility. https://protolock.dev";
22 mainProgram = "protolock";
23 homepage = "https://github.com/nilslice/protolock";
24 license = licenses.bsd3;
25 maintainers = with maintainers; [ groodt ];
26 };
27}