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

24 lines
610 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "gomodifytags";
version = "1.16.0";
src = fetchFromGitHub {
owner = "fatih";
repo = "gomodifytags";
rev = "v${version}";
sha256 = "1yhkn9mdvsn9i5v03c5smz32zlhkylnxhkcbjb7llafxzbhzgfm6";
};
vendorHash = "sha256-8efqJfu+gtoFbhdlDZfb8NsXV9hBDI2pvAQNH18VVhU=";
meta = {
description = "Go tool to modify struct field tags";
mainProgram = "gomodifytags";
homepage = "https://github.com/fatih/gomodifytags";
maintainers = with lib.maintainers; [ vdemeester ];
license = lib.licenses.bsd3;
};
}