upcloud-cli: init at 3.14.0 (#368124)

This commit is contained in:
Gaétan Lepage
2025-01-10 14:26:53 +01:00
committed by GitHub
2 changed files with 55 additions and 0 deletions
+6
View File
@@ -13364,6 +13364,12 @@
githubId = 37505890;
name = "Luis Wirth";
};
lu1a = {
email = "lu5a@proton.me";
github = "lu1a";
githubId = 83420438;
name = "Lewis";
};
LucaGuerra = {
email = "luca@guerra.sh";
github = "LucaGuerra";
+49
View File
@@ -0,0 +1,49 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
pname = "upcloud-cli";
version = "3.14.0";
src = fetchFromGitHub {
owner = "UpCloudLtd";
repo = "upcloud-cli";
tag = "v${version}";
hash = "sha256-zKPoJFfgqi6ZIeZKJy7YeYuqHWVPH0LXvWpOYCEM7dE=";
};
vendorHash = "sha256-76bLk4zten9SGXbt/M8VKPSylCwQqclyscSVQQaAtbA=";
ldflags = [
"-s -w -X github.com/UpCloudLtd/upcloud-cli/v3/internal/config.Version=${version}"
];
subPackages = [
"cmd/upctl"
"internal/*"
];
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/upctl";
versionCheckProgramArg = [ "version" ];
doInstallCheck = true;
passthru = {
updateScript = lib.nix-update-script { };
};
meta = {
changelog = "https://github.com/UpCloudLtd/upcloud-cli/blob/refs/tags/v${version}/CHANGELOG.md";
description = "Command-line tool for managing UpCloud services";
homepage = "https://github.com/UpCloudLtd/upcloud-cli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lu1a ];
mainProgram = "upctl";
};
}