blob: 965a5a5c9a75c750dcbad1e2eb4d60c868bd23e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "timoni";
version = "0.22.0";
src = fetchFromGitHub {
owner = "stefanprodan";
repo = "timoni";
rev = "v${version}";
hash = "sha256-g0B5UbveQ6KYqfXGF5bsGJfUuZ3q1TNEaC1GwtNAig8=";
};
vendorHash = "sha256-XeqHETKWw74edsWCOKC+bhIt0NZz5mgrTShoQk1hb5Y=";
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 ];
};
}
|