xclock: add version check

This commit is contained in:
Ihar Hrachyshka
2026-07-04 01:17:22 -04:00
parent 47584421cd
commit 5b1f2ce84a
+5
View File
@@ -5,6 +5,7 @@
meson,
ninja,
pkg-config,
versionCheckHook,
wrapWithXFileSearchPathHook,
libx11,
libxaw,
@@ -53,6 +54,10 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonOption "appdefaultdir" "${placeholder "out"}/share/X11/app-defaults")
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "-version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=xclock-(.*)" ]; };
meta = {