2022-05-28 15:22:26 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildGoModule
|
2021-08-02 09:18:47 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, nixosTests
|
2021-05-20 01:06:23 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghostunnel";
|
2022-11-22 04:01:13 +01:00
|
|
|
version = "1.7.1";
|
2021-05-20 01:06:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ghostunnel";
|
|
|
|
repo = "ghostunnel";
|
|
|
|
rev = "v${version}";
|
2022-11-22 18:16:05 +01:00
|
|
|
hash = "sha256-yG9PfpYqW95X7EfbAhKEDmqBue7SjFULXUO73V4s3t4=";
|
2021-05-20 01:06:23 +02:00
|
|
|
};
|
|
|
|
|
2022-06-26 01:19:16 +02:00
|
|
|
vendorSha256 = null;
|
2021-08-01 01:03:57 +02: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/
|
|
|
|
'';
|
2021-05-20 01:06:23 +02:00
|
|
|
|
2021-08-02 09:18:47 +02:00
|
|
|
passthru.tests = {
|
|
|
|
nixos = nixosTests.ghostunnel;
|
|
|
|
podman = nixosTests.podman-tls-ghostunnel;
|
|
|
|
};
|
|
|
|
|
2021-05-20 01:06:23 +02:00
|
|
|
meta = with lib; {
|
2022-05-28 15:22:26 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2022-11-22 18:16:05 +01:00
|
|
|
description = "TLS proxy with mutual authentication support for securing non-TLS backend applications";
|
2021-05-20 01:06:23 +02:00
|
|
|
homepage = "https://github.com/ghostunnel/ghostunnel#readme";
|
2022-11-22 18:16:05 +01:00
|
|
|
changelog = "https://github.com/ghostunnel/ghostunnel/releases/tag/v${version}";
|
2021-05-20 01:06:23 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ roberth ];
|
|
|
|
};
|
|
|
|
}
|