2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDartApplication
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDartApplication rec {
|
|
|
|
pname = "protoc-gen-dart";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.1.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "protobuf.dart";
|
|
|
|
rev = "protobuf-v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-2QnLS6GHhDHMCnAY+2c1wMyPY3EKtlijWHQC+9AVt0k=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/protoc_plugin";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
pubspecLockFile = ./pubspec.lock;
|
2023-11-16 04:20:00 +00:00
|
|
|
depsListFile = ./deps.json;
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-yNgQLCLDCbA07v9tIwPRks/xPAzLVykNtIk+8C0twYM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Protobuf plugin for generating Dart code";
|
|
|
|
homepage = "https://pub.dev/packages/protoc_plugin";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ lelgenio ];
|
|
|
|
};
|
|
|
|
}
|