From 2ecfdda4cd6c2dabe7377a5a3e667f7b1e0637d8 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 16 Aug 2024 18:24:22 +0300 Subject: [PATCH] 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`. --- pkgs/development/compilers/c3c/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/c3c/default.nix b/pkgs/development/compilers/c3c/default.nix index 6187b75cc874..7b9b2086b39f 100644 --- a/pkgs/development/compilers/c3c/default.nix +++ b/pkgs/development/compilers/c3c/default.nix @@ -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";