Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildGo125Module,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
dbus,
|
|
}:
|
|
|
|
buildGo125Module (finalAttrs: {
|
|
pname = "upcloud-cli";
|
|
version = "3.23.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "UpCloudLtd";
|
|
repo = "upcloud-cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-oATz3ZvOeFT0wJ7R69cleGdpD9ICWQVOINKelJguBR4=";
|
|
};
|
|
|
|
vendorHash = "sha256-Q/FokLGjc65ptbouRT5L0bxPIzzctTo87oFu9qd/NHs=";
|
|
|
|
ldflags = [
|
|
"-s -w -X github.com/UpCloudLtd/upcloud-cli/v3/internal/config.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
subPackages = [
|
|
"cmd/upctl"
|
|
"internal/*"
|
|
];
|
|
|
|
nativeCheckInputs = [ dbus ];
|
|
|
|
checkFlags =
|
|
let
|
|
skippedTests = [
|
|
"TestConfig_LoadKeyring" # Not equal: expected: "unittest_password" actual : ""
|
|
];
|
|
in
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/upctl";
|
|
versionCheckProgramArg = "version";
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
changelog = "https://github.com/UpCloudLtd/upcloud-cli/blob/refs/tags/v${finalAttrs.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";
|
|
};
|
|
})
|