cbmc: use versionCheckHook instead of testers.testVersion

There's no reason to use passthru.tests for this and manual
<doc/stdenv/passthru.chapter.md> recommends to do this by default.
This commit is contained in:
Sergei Zimmerman
2025-01-08 20:33:56 +03:00
parent 8d5481aecd
commit f75cb3c5d5
+7 -6
View File
@@ -2,10 +2,8 @@
lib,
stdenv,
fetchFromGitHub,
testers,
bison,
cadical,
cbmc,
cmake,
flex,
makeWrapper,
@@ -14,6 +12,7 @@
cudd,
nix-update-script,
fetchpatch,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -109,10 +108,12 @@ stdenv.mkDerivation (finalAttrs: {
"-Dsat_impl=cadical"
];
passthru.tests.version = testers.testVersion {
package = cbmc;
command = "cbmc --version";
};
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/cbmc";
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script {
extraArgs = [