tubekit: init at 4
This commit is contained in:
parent
a21493d40d
commit
bb978928b9
26
pkgs/applications/networking/cluster/tubekit/default.nix
Normal file
26
pkgs/applications/networking/cluster/tubekit/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "tubekit";
|
||||
version = "4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "reconquest";
|
||||
repo = "tubekit";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-sq91uR8ITMOv8hivwKQR02mMlJpjDHw6RxiwVUrpwnY=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-qrGzmr1dZPn5r2WBJA7FT7RTqP2sxnrXgbrnKlnpF0Y=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kubectl alternative with quick context switching";
|
||||
homepage = "https://github.com/reconquest/tubekit";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ farcaller ];
|
||||
};
|
||||
}
|
17
pkgs/applications/networking/cluster/tubekit/wrapper.nix
Normal file
17
pkgs/applications/networking/cluster/tubekit/wrapper.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib
|
||||
, runCommand
|
||||
, makeWrapper
|
||||
, tubekit-unwrapped
|
||||
, pname ? "tubekit"
|
||||
, version ? tubekit-unwrapped.version
|
||||
, kubectl
|
||||
}:
|
||||
runCommand "${pname}-${version}"
|
||||
{
|
||||
inherit pname version;
|
||||
inherit (tubekit-unwrapped) src meta;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${tubekit-unwrapped}/bin/tubectl $out/bin/tubectl --set-default TUBEKIT_KUBECTL ${kubectl}/bin/kubectl
|
||||
''
|
|
@ -38628,4 +38628,8 @@ with pkgs;
|
|||
jfrog-cli = callPackage ../tools/misc/jfrog-cli { };
|
||||
|
||||
ov = callPackage ../tools/text/ov { };
|
||||
|
||||
tubekit = callPackage ../applications/networking/cluster/tubekit/wrapper.nix { };
|
||||
|
||||
tubekit-unwrapped = callPackage ../applications/networking/cluster/tubekit { };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue