From e3b2e0294d3f9f908bf7f04ba16ed07cefb9ecc3 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Thu, 10 Nov 2022 10:39:16 +0000 Subject: [PATCH] kubetail: 1.6.13 -> 1.6.16 --- .../networking/cluster/kubetail/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/networking/cluster/kubetail/default.nix b/pkgs/applications/networking/cluster/kubetail/default.nix index e0ced9e2a8f8..dbf32808f941 100644 --- a/pkgs/applications/networking/cluster/kubetail/default.nix +++ b/pkgs/applications/networking/cluster/kubetail/default.nix @@ -1,21 +1,23 @@ -{ stdenv, fetchFromGitHub, lib, ... }: +{ stdenv, fetchFromGitHub, lib, installShellFiles, makeWrapper, kubectl }: stdenv.mkDerivation rec { pname = "kubetail"; - version = "1.6.13"; + version = "1.6.16"; src = fetchFromGitHub { owner = "johanhaleby"; repo = "kubetail"; rev = version; - sha256 = "sha256-EkOewNInzEEEgMOffYoRaKwhgYuBXgHaCkVgWg2mIDE="; + sha256 = "sha256-kkbhhAaiKP01LR7F5JVMgy6Ujji8JDc+Aaho1vft3XQ="; }; + nativeBuildInputs = [ installShellFiles makeWrapper ]; + installPhase = '' - install -Dm755 kubetail "$out/bin/kubetail" - install -Dm755 completion/kubetail.bash "$out/share/bash-completion/completions/kubetail" - install -Dm755 completion/kubetail.fish "$out/share/fish/vendor_completions.d/kubetail.fish" - install -Dm755 completion/kubetail.zsh "$out/share/zsh/site-functions/_kubetail" + install -Dm755 kubetail "$out/bin/kubetail" + wrapProgram $out/bin/kubetail --prefix PATH : ${lib.makeBinPath [ kubectl ]} + + installShellCompletion completion/kubetail.{bash,fish,zsh} ''; meta = with lib; {