1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ghostunnel";
|
|
version = "1.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ghostunnel";
|
|
repo = "ghostunnel";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-vODSjTpo2oTY42fONhUU8Xn119cTYUGQ6RJaLnS9q3k=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
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;
|
|
};
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
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 ];
|
|
};
|
|
}
|