jo: enable installCheck

This commit is contained in:
ZHAO Jin-Xiang
2025-05-18 14:56:50 +08:00
parent 354c051178
commit 7786d6d3d1
+11
View File
@@ -5,6 +5,7 @@
autoreconfHook,
pandoc,
pkg-config,
versionCheckHook,
nix-update-script,
}:
@@ -27,6 +28,16 @@ stdenv.mkDerivation rec {
pkg-config
];
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "-v";
postInstallCheck = ''
$out/bin/jo -V > /dev/null
seq 1 10 | $out/bin/jo -a | grep '^\[1,2,3,4,5,6,7,8,9,10\]$' > /dev/null
'';
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {