mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
kns: init at unstable-2023-04-25
This commit is contained in:
parent
e1ba20238c
commit
23434b89f9
38
pkgs/applications/networking/cluster/kns/default.nix
Normal file
38
pkgs/applications/networking/cluster/kns/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user