2024-07-05 08:19:04 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2022-06-30 14:02:44 +00:00
|
|
|
let
|
2023-09-23 06:30:47 +00:00
|
|
|
version = "1.6.1";
|
2022-06-30 14:02:44 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
pname = "ktunnel";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omrikiei";
|
|
|
|
repo = "ktunnel";
|
|
|
|
rev = "v${version}";
|
2023-09-23 06:30:47 +00:00
|
|
|
sha256 = "sha256-rcUCIUIyBCSuMly7y0GUNQCdJUgsj7Oi6Hpz23uXoJw=";
|
2022-06-30 14:02:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
];
|
|
|
|
|
2023-04-20 08:07:00 +00:00
|
|
|
vendorHash = "sha256-Q8t/NWGeUB1IpxdsxvyvbYh/adtcA4p+7bcCy9YFjsw=";
|
2022-06-30 14:02:44 +00:00
|
|
|
|
|
|
|
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; {
|
2024-07-26 00:18:51 +00:00
|
|
|
description = "Cli that exposes your local resources to kubernetes";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "ktunnel";
|
2022-06-30 14:02:44 +00:00
|
|
|
homepage = "https://github.com/omrikiei/ktunnel";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|