projecteur: add versionCheckHook

This commit is contained in:
Pol Dellaiera
2025-11-07 13:04:02 +01:00
parent d3122d7a92
commit 5007dc33a7
@@ -8,6 +8,7 @@
qtgraphicaleffects,
wrapQtAppsHook,
udevCheckHook,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -38,14 +39,16 @@ stdenv.mkDerivation (finalAttrs: {
udevCheckHook
];
doInstallCheck = true;
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX:PATH=${placeholder "out"}"
"-DPACKAGE_TARGETS=OFF"
"-DCMAKE_INSTALL_UDEVRULESDIR=${placeholder "out"}/lib/udev/rules.d"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "Linux/X11 application for the Logitech Spotlight device (and similar devices)";
homepage = "https://github.com/jahnf/Projecteur";