From c4fc0521a90c10d3093e771197e270d466c10148 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 18 Sep 2024 21:57:23 +0800 Subject: [PATCH] kubetui: init at 1.5.3 --- pkgs/by-name/ku/kubetui/package.nix | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/ku/kubetui/package.nix diff --git a/pkgs/by-name/ku/kubetui/package.nix b/pkgs/by-name/ku/kubetui/package.nix new file mode 100644 index 000000000000..4c4ce328215b --- /dev/null +++ b/pkgs/by-name/ku/kubetui/package.nix @@ -0,0 +1,42 @@ +{ + rustPlatform, + lib, + fetchFromGitHub, + stdenv, + darwin, +}: + +rustPlatform.buildRustPackage rec { + pname = "kubetui"; + version = "1.5.3"; + + src = fetchFromGitHub { + owner = "sarub0b0"; + repo = "kubetui"; + rev = "refs/tags/v${version}"; + hash = "sha256-0K0h/MaQClJDqgF0qQO2INb+hpzxfSikAti+751MX/8="; + }; + + checkFlags = [ + "--skip=workers::kube::store::tests::kubeconfigからstateを生成" + ]; + + buildInputs = lib.optionals (stdenv.isDarwin) ( + with darwin.apple_sdk; + [ + frameworks.CoreGraphics + frameworks.AppKit + ] + ); + cargoHash = "sha256-kfAErXqjdLn2jaCtr+eI0+0v4TcE8Hpx0DDECnuYp5w="; + + meta = { + homepage = "https://github.com/sarub0b0/kubetui"; + changelog = "https://github.com/sarub0b0/kubetui/releases/tag/v${version}"; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + license = lib.licenses.mit; + description = "Intuitive TUI tool for real-time monitoring and exploration of Kubernetes resources"; + mainProgram = "kubetui"; + }; +}