about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix b/nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix
new file mode 100644
index 000000000000..fa11e1b60e80
--- /dev/null
+++ b/nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix
@@ -0,0 +1,28 @@
+{ 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";
+
+  pubspecLockFile = ./pubspec.lock;
+  depsListFile = ./deps.json;
+  vendorHash = "sha256-yNgQLCLDCbA07v9tIwPRks/xPAzLVykNtIk+8C0twYM=";
+
+  meta = with lib; {
+    description = "Protobuf plugin for generating Dart code";
+    homepage = "https://pub.dev/packages/protoc_plugin";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ lelgenio ];
+  };
+}