diff --git a/pkgs/by-name/go/gogup/package.nix b/pkgs/by-name/go/gogup/package.nix new file mode 100644 index 000000000000..269a9a1a399a --- /dev/null +++ b/pkgs/by-name/go/gogup/package.nix @@ -0,0 +1,34 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "gogup"; + version = "0.27.3"; + + src = fetchFromGitHub { + owner = "nao1215"; + repo = "gup"; + rev = "v${version}"; + hash = "sha256-8DtD22kvGez2iX0VqoZ1zSydcNYnDz3r698nXEwtoZE="; + }; + + vendorHash = "sha256-yqCmo33ihkaPK8iL5cnCIGbOLkdXjuIWLwtgAa+KB8Y="; + 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"; + }; +}