diff options
-rw-r--r-- | pkgs/applications/networking/cluster/ktunnel/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/ktunnel/default.nix b/pkgs/applications/networking/cluster/ktunnel/default.nix new file mode 100644 index 0000000000000..368532dbef4e7 --- /dev/null +++ b/pkgs/applications/networking/cluster/ktunnel/default.nix @@ -0,0 +1,39 @@ +{ stdenv, lib, buildGoModule, fetchFromGitHub }: +let + version = "1.4.8"; +in +buildGoModule { + pname = "ktunnel"; + inherit version; + + src = fetchFromGitHub { + owner = "omrikiei"; + repo = "ktunnel"; + rev = "v${version}"; + sha256 = "sha256-Iw7Z4iuKxmRrS51KP3k/ouXW4xssdNgxDDzNQR2Zygg="; + }; + + ldflags = [ + "-s" "-w" + ]; + + vendorSha256 = "sha256-p9AYZWNO2oqLich0qzZYuAk55HqB6ttS66ORuNZ4rJg="; + + preCheck = "export HOME=$(mktemp -d)"; + + # # TODO investigate why some tests are failing + doCheck = false; + + installCheckPhase = '' + runHook preInstallCheck + "$out/bin/ktunnel" --version + runHook postInstallCheck + ''; + + meta = with lib; { + description = "A cli that exposes your local resources to kubernetes "; + homepage = "https://github.com/omrikiei/ktunnel"; + license = licenses.asl20; + maintainers = with maintainers; [ happysalada ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 56109aae5c092..785f97d9bc0d4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28032,6 +28032,8 @@ with pkgs; k9s = callPackage ../applications/networking/cluster/k9s { }; + ktunnel = callPackage ../applications/networking/cluster/ktunnel { }; + pgo-client = callPackage ../applications/networking/cluster/pgo-client { }; popeye = callPackage ../applications/networking/cluster/popeye { }; |