2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildGoModule
|
2021-08-05 21:33:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, nixosTests
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghostunnel";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.8.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ghostunnel";
|
|
|
|
repo = "ghostunnel";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-35E8Qhy3U3ZJJL6EOJ2D98vvr0Vv5qMs9pLuQSMFoAs=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
deleteVendor = true;
|
|
|
|
|
|
|
|
# The certstore directory isn't recognized as a subpackage, but is when moved
|
|
|
|
# into the vendor directory.
|
|
|
|
postUnpack = ''
|
|
|
|
mkdir -p $sourceRoot/vendor/ghostunnel
|
|
|
|
mv $sourceRoot/certstore $sourceRoot/vendor/ghostunnel/
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
nixos = nixosTests.ghostunnel;
|
|
|
|
podman = nixosTests.podman-tls-ghostunnel;
|
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2022-11-27 09:42:12 +00:00
|
|
|
description = "TLS proxy with mutual authentication support for securing non-TLS backend applications";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/ghostunnel/ghostunnel#readme";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/ghostunnel/ghostunnel/releases/tag/v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ roberth ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "ghostunnel";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|