Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "timoni";
|
|
version = "0.22.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stefanprodan";
|
|
repo = "timoni";
|
|
rev = "v${version}";
|
|
hash = "sha256-bztaG+agcByiIFR4vp0QCDzL9AvLJoZRyMjwSggtwio=";
|
|
};
|
|
|
|
vendorHash = "sha256-VHR5eQWC5e45ZcpCunrUPdvFKMETRZxHLZnl7FbyFcI=";
|
|
|
|
subPackages = [ "cmd/timoni" ];
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
# Some tests require running Kubernetes instance
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.VERSION=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd timoni \
|
|
--bash <($out/bin/timoni completion bash) \
|
|
--fish <($out/bin/timoni completion fish) \
|
|
--zsh <($out/bin/timoni completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://timoni.sh";
|
|
changelog = "https://github.com/stefanprodan/timoni/releases/tag/${src.rev}";
|
|
description = "Package manager for Kubernetes, powered by CUE and inspired by Helm";
|
|
mainProgram = "timoni";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ votava ];
|
|
};
|
|
}
|