Merge pull request #249810 from mmlb/feat/add-kns

kns: init at unstable-2023-04-25
This commit is contained in:
OTABI Tomoya 2023-08-23 15:41:28 +09:00 committed by GitHub
commit babf87cb69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -33115,6 +33115,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 { };