kns: init at unstable-2023-04-25

This commit is contained in:
Curtis John 2022-10-01 18:37:00 -04:00 committed by Manuel Mendez
parent e1ba20238c
commit 23434b89f9
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ stdenvNoCC
, lib
, fetchFromGitHub
, fzf
, kubectl
}:
stdenvNoCC.mkDerivation {
pname = "kns";
version = "unstable-2023-04-25";
src = fetchFromGitHub {
owner = "blendle";
repo = "kns";
rev = "86502949c31432bd95895cfb26d1c5893c533d5c";
hash = "sha256-8AR/fEKPAfiKCZrp/AyJo3Ic8dH7SfncYZSdQA2GywQ=";
};
strictDeps = true;
buildInputs = [ fzf kubectl ];
installPhase = ''
runHook preInstall
substituteInPlace bin/kns bin/ktx --replace fzf ${fzf}/bin/fzf --replace kubectl ${kubectl}/bin/kubectl
install -D -m755 -t $out/bin bin/kns bin/ktx
runHook postInstall
'';
meta = with lib; {
description = "Kubernetes namespace switcher";
homepage = "https://github.com/blendle/kns";
license = licenses.isc;
maintainers = with maintainers; [ mmlb ];
platforms = platforms.linux;
};
}

View file

@ -32952,6 +32952,8 @@ with pkgs;
kn = callPackage ../applications/networking/cluster/kn { };
kns = callPackage ../applications/networking/cluster/kns { };
kondo = callPackage ../applications/misc/kondo { };
kooha = callPackage ../applications/video/kooha { };