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
61 lines
1.5 KiB
Nix
61 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "timoni";
|
|
version = "0.25.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stefanprodan";
|
|
repo = "timoni";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-u59+FGBURP3p1zosZU+6IfCZMHl4plrf/8/FUUgj/qw=";
|
|
};
|
|
|
|
vendorHash = "sha256-bWhXhZJHdiWY/Yz0l2VAPKJrMVb9XbvVEGPNZIQtvFQ=";
|
|
|
|
subPackages = [ "cmd/timoni" ];
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
# Some tests require running Kubernetes instance
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-X main.VERSION=${finalAttrs.version}"
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd timoni \
|
|
--bash <($out/bin/timoni completion bash) \
|
|
--fish <($out/bin/timoni completion fish) \
|
|
--zsh <($out/bin/timoni completion zsh)
|
|
'';
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://timoni.sh";
|
|
changelog = "https://github.com/stefanprodan/timoni/releases/tag/v${finalAttrs.version}";
|
|
description = "Package manager for Kubernetes, powered by CUE and inspired by Helm";
|
|
mainProgram = "timoni";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ votava ];
|
|
};
|
|
})
|