2022-03-10 19:12:11 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "protoc-gen-validate";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.0.2";
|
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-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-sztpUzrVvYT3GFVbfd91rOudj/PEHHizTOzTrH1fQts=";
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-UPmeb36kF+z37+RcyXaOsJvAto1xrJUyJqcPyODAQrY=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|