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
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Protobuf plugin for generating Dart code";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "protoc-gen-dart";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://pub.dev/packages/protoc_plugin";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ lelgenio ];
|
|
|
|
};
|
|
|
|
}
|