diff options
author | Periklis Tsirakidis <periklis.tsirakidis@holidaycheck.com> | 2018-08-12 11:24:42 +0200 |
---|---|---|
committer | Periklis Tsirakidis <periklis.tsirakidis@holidaycheck.com> | 2018-08-12 12:02:52 +0200 |
commit | 56b756e757ff95a30e903005bc7c187c0c8625ce (patch) | |
tree | 89bc388e476960f02c44fd1c7dc92d1e87882ff9 /pkgs/development/tools/kubectx | |
parent | 4af9ee49f1ebc72d34c9c482ba50f887f90aebdc (diff) | |
download | nixlib-56b756e757ff95a30e903005bc7c187c0c8625ce.tar nixlib-56b756e757ff95a30e903005bc7c187c0c8625ce.tar.gz nixlib-56b756e757ff95a30e903005bc7c187c0c8625ce.tar.bz2 nixlib-56b756e757ff95a30e903005bc7c187c0c8625ce.tar.lz nixlib-56b756e757ff95a30e903005bc7c187c0c8625ce.tar.xz nixlib-56b756e757ff95a30e903005bc7c187c0c8625ce.tar.zst nixlib-56b756e757ff95a30e903005bc7c187c0c8625ce.zip |
kubectx: init at v0.5.1
Diffstat (limited to 'pkgs/development/tools/kubectx')
-rw-r--r-- | pkgs/development/tools/kubectx/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/tools/kubectx/default.nix b/pkgs/development/tools/kubectx/default.nix new file mode 100644 index 000000000000..5cf0badf668e --- /dev/null +++ b/pkgs/development/tools/kubectx/default.nix @@ -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; + }; +} |