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
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
testers,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "ovhcloud-cli";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ovh";
|
|
repo = "ovhcloud-cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-vf8z2jOcN76BIS6AamWxrBIVUMxlerd4dNwVxpuxQZg=";
|
|
};
|
|
|
|
vendorHash = "sha256-WNONEceR/cDVloosQ/BMYjPTk9elQ1oTX89lgzENSAI=";
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/ovh/ovhcloud-cli/internal/version.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
excludedPackages = [ "cmd/docgen" ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
command = "ovhcloud version";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ovh/ovhcloud-cli";
|
|
changelog = "https://github.com/ovh/ovhcloud-cli/releases/tag/v${finalAttrs.version}";
|
|
description = "Command Line Interface to manage your OVHcloud services";
|
|
mainProgram = "ovhcloud";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.anthonyroussel ];
|
|
};
|
|
})
|