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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user