Files
nixpkgs/pkgs/by-name/ok/okms-cli/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
testers,
}:
buildGoModule (finalAttrs: {
pname = "okms-cli";
version = "0.3.5";
src = fetchFromGitHub {
owner = "ovh";
repo = "okms-cli";
tag = "v${finalAttrs.version}";
hash = "sha256-zYhK2ulFVw7XlhoKrN9JoZg8lUFisfKS/Iez+Ll0eME=";
};
vendorHash = "sha256-LFZ4dsWnODHLFc6k7p+Rd3zR0befCSOZLanwUFIWRl0=";
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
"-X main.commit=${finalAttrs.src.rev}"
"-X main.date=unknown"
];
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "okms version";
};
updateScript = nix-update-script { };
};
meta = {
homepage = "https://github.com/ovh/okms-cli";
changelog = "https://github.com/ovh/okms-cli/releases/tag/v${finalAttrs.version}";
description = "Command Line Interface to interact with your OVHcloud KMS services";
mainProgram = "okms";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.anthonyroussel ];
};
})