mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 18:23:44 +00:00
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "timoni";
|
|
version = "0.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stefanprodan";
|
|
repo = "timoni";
|
|
rev = "v${version}";
|
|
hash = "sha256-o5s/3c6fi6aYzKIBKq23U6FtzueDN0WVsG/wdCMEjDU=";
|
|
};
|
|
|
|
vendorHash = "sha256-rMLswgEWWaDupBHDXs/JATaaw4n5D+LjlM72eq8hPAM=";
|
|
|
|
subPackages = [ "cmd/timoni" ];
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
# Some tests require running Kubernetes instance
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|