571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
909 B
Nix
41 lines
909 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
let
|
|
version = "1.6.1";
|
|
in
|
|
buildGoModule {
|
|
pname = "ktunnel";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "omrikiei";
|
|
repo = "ktunnel";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-rcUCIUIyBCSuMly7y0GUNQCdJUgsj7Oi6Hpz23uXoJw=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
];
|
|
|
|
vendorHash = "sha256-Q8t/NWGeUB1IpxdsxvyvbYh/adtcA4p+7bcCy9YFjsw=";
|
|
|
|
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";
|
|
homepage = "https://github.com/omrikiei/ktunnel";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ happysalada ];
|
|
};
|
|
}
|