go-mod-upgrade: init at 0.11.0

This commit is contained in:
polyfloyd 2025-02-21 11:50:01 +01:00
parent b3e496c2dc
commit 6dc8946ea7

View file

@ -0,0 +1,38 @@
{
stdenv,
lib,
fetchFromGitHub,
buildGoModule,
nix-update-script,
versionCheckHook,
}:
buildGoModule rec {
pname = "go-mod-upgrade";
version = "0.11.0";
src = fetchFromGitHub {
owner = "oligot";
repo = "go-mod-upgrade";
tag = "v${version}";
hash = "sha256-RjP9Yt3jzLcgkPKFboMnOZw0qRJQzSRstQtadj8bzlI=";
};
vendorHash = "sha256-Qx+8DfeZyNSTf5k4juX7+0IXT4zY2LJMuMw3e1HrxBs=";
ldflags = [
"-X main.version=${version}"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Update outdated Go dependencies interactively";
changelog = "https://github.com/oligot/go-mod-upgrade/releases/tag/v${version}/CHANGELOG.md";
homepage = "https://github.com/oligot/go-mod-upgrade";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ polyfloyd ];
};
}