xclock: add version check
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user