2022-03-10 19:12:11 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "protoc-gen-validate";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "0.10.1";
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-30 15:09:59 +00:00
|
|
|
owner = "bufbuild";
|
2022-03-10 19:12:11 +00:00
|
|
|
repo = "protoc-gen-validate";
|
|
|
|
rev = "v${version}";
|
2023-03-30 22:05:00 +00:00
|
|
|
sha256 = "sha256-yo0/RhUs9KUdY0l0qqRs3eGWr4y183ZNSCsWihFK++4=";
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
vendorHash = "sha256-yGQO5vTdkAr6bKnpaQz//n7r07NGyQg+vQ2BqPGe8Nk=";
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
excludedPackages = [ "tests" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Protobuf plugin for generating polyglot message validators";
|
|
|
|
homepage = "https://github.com/envoyproxy/protoc-gen-validate";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ matthewpi ];
|
|
|
|
};
|
|
|
|
}
|