about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/ktunnel
diff options
context:
space:
mode:
authorhappysalada <raphael@megzari.com>2022-06-30 10:02:44 -0400
committerYt <happysalada@proton.me>2022-06-30 15:38:06 -0400
commite427ac5955f4b3abdc17636a80865b1b3fe720ae (patch)
treebdac16eb84d51f5d7c59fa51f5ffb6bee4da0cc6 /pkgs/applications/networking/cluster/ktunnel
parenta1ad66a4afa34b4517bd6adeb0812901271a5a58 (diff)
ktunnel: init at 1.4.8
Diffstat (limited to 'pkgs/applications/networking/cluster/ktunnel')
-rw-r--r--pkgs/applications/networking/cluster/ktunnel/default.nix39
1 files changed, 39 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 ];
+  };
+}