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