2023-06-08 02:13:50 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDartApplication
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDartApplication rec {
|
|
|
|
pname = "protoc-gen-dart";
|
2023-08-29 15:33:32 +02:00
|
|
|
version = "3.1.0";
|
2023-06-08 02:13:50 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "protobuf.dart";
|
|
|
|
rev = "protobuf-v${version}";
|
2023-08-29 15:33:32 +02:00
|
|
|
sha256 = "sha256-2QnLS6GHhDHMCnAY+2c1wMyPY3EKtlijWHQC+9AVt0k=";
|
2023-06-08 02:13:50 +02:00
|
|
|
};
|
2023-07-25 15:27:31 +02:00
|
|
|
sourceRoot = "${src.name}/protoc_plugin";
|
2023-06-08 02:13:50 +02:00
|
|
|
|
|
|
|
pubspecLockFile = ./pubspec.lock;
|
2023-10-21 13:30:23 +02:00
|
|
|
depsListFile = ./deps.json;
|
2023-08-29 15:33:32 +02:00
|
|
|
vendorHash = "sha256-yNgQLCLDCbA07v9tIwPRks/xPAzLVykNtIk+8C0twYM=";
|
2023-06-08 02:13:50 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|