···4344 inherit doCheck;
4500000046 installPhase = let
47 libname = "libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
48 in ''
···4344 inherit doCheck;
4546+ # By default, cmake build will run ctests with all checks enabled
47+ # If we're building with cuda, we run ctest manually so that we can skip the GPU tests
48+ checkPhase = lib.optionalString cudaSupport ''
49+ ctest --force-new-ctest-process ${lib.optionalString cudaSupport "-E TestXGBoostLib"}
50+ '';
51+52 installPhase = let
53 libname = "libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
54 in ''