c3c: switch from testVersion to versionCheckHook

`versionCheckHook` is much more verbose then `testVersion`, and it
forces you to observe the failure when building it, and not only on CI /
if you explicitly build `c3c.passthru.tests`.
This commit is contained in:
Doron Behar
2024-08-17 20:10:54 +03:00
parent 393e966194
commit 2ecfdda4cd
+3 -4
View File
@@ -8,7 +8,7 @@
libxml2,
libffi,
xar,
testers,
versionCheckHook,
}:
llvmPackages.stdenv.mkDerivation (finalAttrs: {
@@ -48,9 +48,8 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
runHook postCheck
'';
passthru.tests = {
version = testers.testVersion { package = finalAttrs.finalPackage; };
};
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = with lib; {
description = "Compiler for the C3 language";