2023-12-21 15:09:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-06-22 04:50:17 +00:00
|
|
|
|
2022-02-04 12:16:47 +00:00
|
|
|
buildGoModule rec {
|
2021-10-17 18:44:54 +00:00
|
|
|
pname = "talosctl";
|
2024-11-13 16:21:06 +00:00
|
|
|
version = "1.8.3";
|
2021-10-17 18:44:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-04-09 03:29:31 +00:00
|
|
|
owner = "siderolabs";
|
2021-10-17 18:44:54 +00:00
|
|
|
repo = "talos";
|
|
|
|
rev = "v${version}";
|
2024-11-13 16:21:06 +00:00
|
|
|
hash = "sha256-KC5FxNrKRcAvM9IVuj9jh2AdQ6qqqdo3GwWRHH8t9As=";
|
2021-10-17 18:44:54 +00:00
|
|
|
};
|
|
|
|
|
2024-11-13 16:21:06 +00:00
|
|
|
vendorHash = "sha256-/Xt/WZ+5ptxsiUkm6mplilB9gqv3mz+j7tyNikzJtkA=";
|
2022-06-22 04:50:17 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2024-04-05 17:29:45 +00:00
|
|
|
env.GOWORK = "off";
|
2021-10-17 18:44:54 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/talosctl" ];
|
|
|
|
|
2022-02-10 21:02:08 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd talosctl \
|
|
|
|
--bash <($out/bin/talosctl completion bash) \
|
|
|
|
--fish <($out/bin/talosctl completion fish) \
|
|
|
|
--zsh <($out/bin/talosctl completion zsh)
|
|
|
|
'';
|
|
|
|
|
2022-09-07 20:11:50 +00:00
|
|
|
doCheck = false; # no tests
|
2021-10-17 18:44:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI for out-of-band management of Kubernetes nodes created by Talos";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "talosctl";
|
2022-04-09 03:29:31 +00:00
|
|
|
homepage = "https://www.talos.dev/";
|
2021-10-17 18:44:54 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|