Unverified Commit 6c81f75b authored by Kenichi Kamiya's avatar Kenichi Kamiya
Browse files

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 befb2bee.
Adding it will help automatically verify the executable name's correctness.
parent 5f7f854b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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";