83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
29 lines
713 B
Nix
29 lines
713 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildDartApplication
|
|
}:
|
|
|
|
buildDartApplication rec {
|
|
pname = "protoc-gen-dart";
|
|
version = "3.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "protobuf.dart";
|
|
rev = "protobuf-v${version}";
|
|
sha256 = "sha256-2QnLS6GHhDHMCnAY+2c1wMyPY3EKtlijWHQC+9AVt0k=";
|
|
};
|
|
sourceRoot = "${src.name}/protoc_plugin";
|
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = with lib; {
|
|
description = "Protobuf plugin for generating Dart code";
|
|
mainProgram = "protoc-gen-dart";
|
|
homepage = "https://pub.dev/packages/protoc_plugin";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ lelgenio ];
|
|
};
|
|
}
|