2022-03-10 19:12:11 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "protoc-gen-validate";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "0.6.8";
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "envoyproxy";
|
|
|
|
repo = "protoc-gen-validate";
|
|
|
|
rev = "v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-s66HfafyiAwr4tvWiPVj7ivWE9C03KTGgI/iu0LgNGk=";
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
vendorSha256 = "sha256-vFi1DT7o2fyzxO/aZHtdsU1/G/sGmamqZPeql0vQVjs=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|