Merge pull request #44929 from periklis/package-kubectx

kubectx: init at v0.5.1
This commit is contained in:
Sarah Brofeldt 2018-08-12 12:15:49 +02:00 committed by GitHub
commit 1d7c7cca0a
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 @@
{ stdenv, lib, fetchFromGitHub, kubectl, makeWrapper }:
with lib;
stdenv.mkDerivation rec {
name = "kubectx";
version = "0.5.1";
src = fetchFromGitHub {
owner = "ahmetb";
repo = "${name}";
rev = "v${version}";
sha256 = "1bmmaj5fffx4hy55l6x4vl5gr9rp2yhg4vs5b9sya9rjvdkamdx5";
};
buildInputs = [ makeWrapper ];
dontBuild = true;
doCheck = false;
installPhase = ''
mkdir -p $out/bin
cp kubectx $out/bin
cp kubens $out/bin
for f in $out/bin/*; do
wrapProgram $f --prefix PATH : ${makeBinPath [ kubectl ]}
done
'';
meta = {
description = "Fast way to switch between clusters and namespaces in kubectl!";
license = licenses.asl20;
homepage = https://github.com/ahmetb/kubectx;
maintainers = with maintainers; [ periklis ];
platforms = with platforms; unix;
};
}

View File

@ -8315,6 +8315,8 @@ with pkgs;
kube-aws = callPackage ../development/tools/kube-aws { };
kubectx = callPackage ../development/tools/kubectx { };
kustomize = callPackage ../development/tools/kustomize { };
Literate = callPackage ../development/tools/literate-programming/Literate {};