nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
673 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";
mainProgram = "protoc-gen-dart";
homepage = "https://pub.dev/packages/protoc_plugin";
license = licenses.bsd3;
maintainers = with maintainers; [ lelgenio ];
};
}