diff --git a/pkgs/development/libraries/protolock/default.nix b/pkgs/development/libraries/protolock/default.nix new file mode 100644 index 000000000000..a36e9e0fd0da --- /dev/null +++ b/pkgs/development/libraries/protolock/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "protolock"; + version = "0.14.1"; + + src = fetchFromGitHub { + owner = "nilslice"; + repo = "protolock"; + rev = "v${version}"; + sha256 = "0assk7hp9s3m7zm5i1v0pggz00a54yf2w3y0b8mlq5v51y2h8h2z"; + }; + + modSha256 = "079hbv0f8k5lljrb1cr9568wq8sb9yry9smgbrji19yavd9fzcmh"; + + postInstall = '' + rm $out/bin/plugin* + ''; + + meta = with lib; { + description = "Protocol Buffer companion tool. Track your .proto files and prevent changes to messages and services which impact API compatibility. https://protolock.dev"; + homepage = "https://github.com/nilslice/protolock"; + license = licenses.bsd3; + maintainers = with maintainers; [ groodt ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7fb795aa909b..67a338e5a793 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13162,6 +13162,8 @@ in protobufc = callPackage ../development/libraries/protobufc/1.3.nix { }; + protolock = callPackage ../development/libraries/protolock { }; + protozero = callPackage ../development/libraries/protozero { }; flatbuffers = callPackage ../development/libraries/flatbuffers { };