mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib
|
|
, buildGo121Module
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGo121Module rec {
|
|
pname = "timoni";
|
|
version = "0.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stefanprodan";
|
|
repo = "timoni";
|
|
rev = "v${version}";
|
|
hash = "sha256-KhDig31BGMmKVrLVFcTXNKjsyAUTb6KEX5PJV2rkMgM=";
|
|
};
|
|
|
|
vendorHash = "sha256-3RbWHLQLLh/omGttY2wWv2nsuuTE8ALAqgQaiJY/EjI=";
|
|
|
|
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 = "A package manager for Kubernetes, powered by CUE and inspired by Helm";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ votava ];
|
|
};
|
|
}
|