diff options
author | Jocelyn Thode <jocelyn.thode@gmail.com> | 2022-07-08 11:04:48 +0200 |
---|---|---|
committer | Jocelyn Thode <jocelyn.thode@gmail.com> | 2022-07-15 16:27:54 +0200 |
commit | 8ee452b03a00ded9d4f19cc5a3962f3e6ab4ad1f (patch) | |
tree | 7dd826e9457ff0201e56a5574c298bb7a320ebdd /pkgs/applications/networking/cluster/kubectl-node-shell | |
parent | 71d0590a46c1c789f5dc613ca3551d562ac220d4 (diff) |
kubectl-node-shell: init at 1.6.0
Diffstat (limited to 'pkgs/applications/networking/cluster/kubectl-node-shell')
-rw-r--r-- | pkgs/applications/networking/cluster/kubectl-node-shell/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/kubectl-node-shell/default.nix b/pkgs/applications/networking/cluster/kubectl-node-shell/default.nix new file mode 100644 index 0000000000000..148d308c4f103 --- /dev/null +++ b/pkgs/applications/networking/cluster/kubectl-node-shell/default.nix @@ -0,0 +1,32 @@ +{ stdenvNoCC, lib, fetchFromGitHub, bash }: + +stdenvNoCC.mkDerivation rec { + pname = "kubectl-node-shell"; + version = "1.6.0"; + + src = fetchFromGitHub { + owner = "kvaps"; + repo = "kubectl-node-shell"; + rev = "v${version}"; + sha256 = "sha256-dAsNgvHgquXdb2HhLDYLk9IALneKkOxQxKb7BD90+1E="; + }; + + strictDeps = true; + buildInputs = [ bash ]; + + installPhase = '' + runHook preInstall + + install -m755 ./kubectl-node_shell -D $out/bin/kubectl-node_shell + + runHook postInstall + ''; + + meta = with lib; { + description = "Exec into node via kubectl"; + homepage = "https://github.com/kvaps/kubectl-node-shell"; + license = licenses.asl20; + maintainers = with maintainers; [ ]; + platforms = platforms.linux; + }; +} |