nixosTests.ghostunnel-modular: fix test (#541269)

This commit is contained in:
Robert Hensing
2026-07-25 12:43:25 +00:00
committed by GitHub
2 changed files with 8 additions and 6 deletions
+5 -6
View File
@@ -3,17 +3,16 @@
fetchFromGitHub,
lib,
nixosTests,
ghostunnel,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "ghostunnel";
version = "1.10.0";
src = fetchFromGitHub {
owner = "ghostunnel";
repo = "ghostunnel";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-BntQCauAgnaiNn31nrVEsHFvQv7zK6D0z/rInbCVTr0=";
};
@@ -41,13 +40,13 @@ buildGoModule rec {
imports = [
(lib.modules.importApply ./service.nix { })
];
ghostunnel.package = ghostunnel; # FIXME: finalAttrs.finalPackage
ghostunnel.package = finalAttrs.finalPackage;
};
meta = {
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}";
changelog = "https://github.com/ghostunnel/ghostunnel/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
roberth
@@ -55,4 +54,4 @@ buildGoModule rec {
];
mainProgram = "ghostunnel";
};
}
})
+3
View File
@@ -187,6 +187,9 @@ in
process = {
argv = [
(getExe cfg.package)
# ghostunnel's landlock rules don't like reading the CA certs from /etc
# because they are links to /nix/store, which isn't part of its rules
"--disable-landlock"
"server"
"--listen"
cfg.listen