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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user