nixpkgs/pkgs/development/tools/protoscope/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

26 lines
743 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "protoscope";
version = "unstable-2022-11-09";
src = fetchFromGitHub {
owner = "protocolbuffers";
repo = "protoscope";
rev = "8e7a6aafa2c9958527b1e0747e66e1bfff045819";
hash = "sha256-+VIy+CD6bKJzwtpHXRr9MqmsPE2MJ1dRdtvSMUkCh5I=";
};
vendorHash = "sha256-mK8eGo6oembs4nofvROn4g0+oO5E5/zQrmPKMe3xXik=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Simple, human-editable language for representing and emitting the Protobuf wire format";
mainProgram = "protoscope";
homepage = "https://github.com/protocolbuffers/protoscope";
license = licenses.asl20;
maintainers = with maintainers; [ aaronjheng ];
};
}