From 98968dae5cafb8f1047985411e12fbd4df13686a Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sat, 10 May 2025 20:13:43 +0000 Subject: [PATCH] eccodes: use ctestCheckHook --- pkgs/development/libraries/eccodes/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/eccodes/default.nix b/pkgs/development/libraries/eccodes/default.nix index 73e55f8f2979..6ca3c51412c8 100644 --- a/pkgs/development/libraries/eccodes/default.nix +++ b/pkgs/development/libraries/eccodes/default.nix @@ -9,6 +9,7 @@ libpng, gfortran, perl, + ctestCheckHook, enablePython ? false, pythonPackages, enablePosixThreads ? false, @@ -65,11 +66,12 @@ stdenv.mkDerivation rec { ]; doCheck = true; - - # Only do tests that don't require downloading 120MB of testdata - checkPhase = '' - ctest -R "eccodes_t_(definitions|calendar|unit_tests|md5|uerra|grib_2nd_order_numValues|julian)" -VV - ''; + nativeCheckInputs = [ ctestCheckHook ]; + checkFlags = [ + "-R" + # Only do tests that don't require downloading 120MB of testdata + "eccodes_t_(definitions|calendar|unit_tests|md5|uerra|grib_2nd_order_numValues|julian)" + ]; meta = with lib; { homepage = "https://confluence.ecmwf.int/display/ECC/";