homebridge-config-ui-x: add versionCheckHook

Prepare to fix meta.mainProgram.
Currently, meta.mainProgram points to a non-existent path.
This hook has checked mainProgram since befb2beebd.
Adding it will help automatically verify the executable name's correctness.
This commit is contained in:
Kenichi Kamiya
2025-10-30 23:50:55 +09:00
parent 5f7f854b14
commit 6c81f75b75
@@ -7,6 +7,7 @@
npmHooks,
python3,
cacert,
versionCheckHook,
}:
buildNpmPackage (finalAttrs: {
@@ -53,6 +54,12 @@ buildNpmPackage (finalAttrs: {
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ cacert ];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
meta = {
description = "Configure Homebridge, monitor and backup from a browser";
homepage = "https://github.com/homebridge/homebridge-config-ui-x";