caddy: Add versionCheckHook

This commit is contained in:
Jonathan Davies
2025-11-24 16:52:06 +00:00
parent 67915b3b92
commit 8a985abbe8
+8 -5
View File
@@ -5,10 +5,10 @@
fetchFromGitHub,
nixosTests,
caddy,
testers,
installShellFiles,
stdenv,
writableTmpDirAsHomeHook,
versionCheckHook,
}:
let
version = "2.10.2";
@@ -75,15 +75,18 @@ buildGo125Module {
passthru = {
tests = {
inherit (nixosTests) caddy;
version = testers.testVersion {
command = "${caddy}/bin/caddy version";
package = caddy;
};
acme-integration = nixosTests.acme.caddy;
};
withPlugins = callPackage ./plugins.nix { inherit caddy; };
};
nativeInstallCheckInputs = [
writableTmpDirAsHomeHook
versionCheckHook
];
versionCheckKeepEnvironment = [ "HOME" ];
doInstallCheck = true;
meta = {
homepage = "https://caddyserver.com";
description = "Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS";