83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ stdenv
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ghostunnel";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ghostunnel";
|
|
repo = "ghostunnel";
|
|
rev = "v${version}";
|
|
hash = "sha256-TYicljKrKBWRKThJlMpMgmMBwesuGw4mC59Dm62PpKI=";
|
|
};
|
|
|
|
vendorHash = 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 = "TLS proxy with mutual authentication support for securing non-TLS backend applications";
|
|
homepage = "https://github.com/ghostunnel/ghostunnel#readme";
|
|
changelog = "https://github.com/ghostunnel/ghostunnel/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ roberth ];
|
|
mainProgram = "ghostunnel";
|
|
};
|
|
}
|