nixpkgs/pkgs/by-name/go/gogup/package.nix

35 lines
808 B
Nix
Raw Normal View History

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "gogup";
2024-08-10 13:37:55 +00:00
version = "0.27.4";
src = fetchFromGitHub {
owner = "nao1215";
repo = "gup";
rev = "v${version}";
2024-08-10 13:37:55 +00:00
hash = "sha256-vCp513WpB3kWMN0nkohtvpuMN1WBndg1E6pF0Cd5FgE=";
};
2024-08-10 13:37:55 +00:00
vendorHash = "sha256-rtdbPwVZHwofpGccYU8NBiaikzNMIwSDggbRdnGTBu8=";
doCheck = false;
ldflags = [
"-s"
"-X github.com/nao1215/gup/internal/cmdinfo.Version=v${version}"
];
meta = with lib; {
description = "Update binaries installed by 'go install' with goroutines";
changelog = "https://github.com/nao1215/gup/blob/v${version}/CHANGELOG.md";
homepage = "https://github.com/nao1215/gup";
license = licenses.asl20;
maintainers = with maintainers; [ phanirithvij ];
mainProgram = "gup";
};
}