2022-03-29 14:17:35 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "krelay";
|
2024-09-14 11:08:38 +00:00
|
|
|
version = "0.1.2";
|
2022-03-29 14:17:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knight42";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-14 11:08:38 +00:00
|
|
|
hash = "sha256-TonkGh4j+xLGgSpspCedg6c2NpIZIzp5pv8VtWFssPk=";
|
2022-03-29 14:17:35 +00:00
|
|
|
};
|
|
|
|
|
2024-09-14 11:08:38 +00:00
|
|
|
vendorHash = "sha256-Qz3q/503A5QmsgEaDqChxS2tcUEJGmeT6YE6R3LBbcY=";
|
2022-03-29 14:17:35 +00:00
|
|
|
|
|
|
|
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; {
|
2024-03-13 14:48:34 +00:00
|
|
|
description = "Drop-in replacement for `kubectl port-forward` with some enhanced features";
|
2022-03-29 14:17:35 +00:00
|
|
|
homepage = "https://github.com/knight42/krelay";
|
|
|
|
changelog = "https://github.com/knight42/krelay/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ivankovnatsky ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "kubectl-relay";
|
2022-03-29 14:17:35 +00:00
|
|
|
};
|
|
|
|
}
|