krelay: init at 0.0.2
This commit is contained in:
parent
e9c2918e9b
commit
e0e1ad16be
2 changed files with 33 additions and 0 deletions
31
pkgs/applications/networking/cluster/krelay/default.nix
Normal file
31
pkgs/applications/networking/cluster/krelay/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -3452,6 +3452,8 @@ with pkgs;
|
|||
|
||||
krapslog = callPackage ../tools/misc/krapslog { };
|
||||
|
||||
krelay = callPackage ../applications/networking/cluster/krelay { };
|
||||
|
||||
krill = callPackage ../servers/krill {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue