diff options
author | Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> | 2022-03-29 17:17:35 +0300 |
---|---|---|
committer | Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> | 2022-03-29 17:17:35 +0300 |
commit | e0e1ad16be1a8c0e1038961e5df2973e6927cc57 (patch) | |
tree | 5422948023bd7bf6c8fe6451df8b1b18633c7d24 /pkgs/applications/networking/cluster/krelay | |
parent | e9c2918e9bce73019f9581b26555bbd5bcb44e78 (diff) |
krelay: init at 0.0.2
Diffstat (limited to 'pkgs/applications/networking/cluster/krelay')
-rw-r--r-- | pkgs/applications/networking/cluster/krelay/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/krelay/default.nix b/pkgs/applications/networking/cluster/krelay/default.nix new file mode 100644 index 0000000000000..f0a9912ab914e --- /dev/null +++ b/pkgs/applications/networking/cluster/krelay/default.nix @@ -0,0 +1,31 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "krelay"; + version = "0.0.2"; + + src = fetchFromGitHub { + owner = "knight42"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-7P+pGiML/1aZEpYAWtAPEhrBAo8e8ATcemrH8tD73w8="; + }; + + vendorSha256 = "sha256-PrL3GYP5K6ZaSAShwuDQA7WfOVJeQraxZ8jrtnajR9g="; + + subPackages = [ "cmd/client" ]; + + ldflags = [ "-s" "-w" "-X github.com/knight42/krelay/pkg/constants.ClientVersion=${version}" ]; + + postInstall = '' + mv $out/bin/client $out/bin/kubectl-relay + ''; + + meta = with lib; { + description = "A better alternative to `kubectl port-forward` that can forward TCP or UDP traffic to IP/Host which is accessible inside the cluster."; + homepage = "https://github.com/knight42/krelay"; + changelog = "https://github.com/knight42/krelay/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ ivankovnatsky ]; + }; +} |