nixpkgs/pkgs/applications/networking/cluster/ktunnel/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
918 B
Nix
Raw Normal View History

2022-06-30 14:02:44 +00:00
{ stdenv, lib, buildGoModule, fetchFromGitHub }:
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; {
description = "Cli that exposes your local resources to kubernetes ";
mainProgram = "ktunnel";
2022-06-30 14:02:44 +00:00
homepage = "https://github.com/omrikiei/ktunnel";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}