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

25 lines
663 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "go-symbols";
version = "0.1.1";
goPackagePath = "github.com/acroca/go-symbols";
goDeps = ./deps.nix;
src = fetchFromGitHub {
owner = "acroca";
repo = "go-symbols";
rev = "v${version}";
sha256 = "0yyzw6clndb2r5j9isyd727njs98zzp057v314vfvknsm8g7hqrz";
};
meta = {
description = "A utility for extracting a JSON representation of the package symbols from a go source tree";
mainProgram = "go-symbols";
homepage = "https://github.com/acroca/go-symbols";
maintainers = with lib.maintainers; [ vdemeester ];
license = lib.licenses.mit;
};
}