diff --git a/pkgs/by-name/si/sirius/package.nix b/pkgs/by-name/si/sirius/package.nix index df4a5a6af8a8..a913e2e9c864 100644 --- a/pkgs/by-name/si/sirius/package.nix +++ b/pkgs/by-name/si/sirius/package.nix @@ -6,6 +6,7 @@ pkg-config, mpi, mpiCheckPhaseHook, + ctestCheckHook, gfortran, blas, lapack, @@ -152,16 +153,14 @@ stdenv.mkDerivation rec { # Can not run parallel checks generally as it requires exactly multiples of 4 MPI ranks # Even cpu_serial tests had to be disabled as they require scalapack routines in the sandbox # and run into the same problem as MPI tests - checkPhase = '' - runHook preCheck - - ctest --output-on-failure --label-exclude integration_test - - runHook postCheck - ''; + checkFlags = [ + "--label-exclude" + "integration_test" + ]; nativeCheckInputs = [ mpiCheckPhaseHook + ctestCheckHook ]; meta = with lib; {