mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
23952fb641
We get a dependency list with pub2nix now. We can no longer easily distinguish between development dependency dependencies and regular dependency dependencies, but we weren't doing this anyway.
27 lines
636 B
Nix
27 lines
636 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;
|
|
|
|
meta = with lib; {
|
|
description = "Protobuf plugin for generating Dart code";
|
|
homepage = "https://pub.dev/packages/protoc_plugin";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ lelgenio ];
|
|
};
|
|
}
|