xgboost: avoid R build dependency when unused

This commit is contained in:
Rohit Singh
2026-03-06 07:43:48 -05:00
parent 9ec540b228
commit ee11d8403e
+1 -1
View File
@@ -105,7 +105,7 @@ effectiveStdenv.mkDerivation rec {
env = {
# on Darwin, cmake uses find_library to locate R instead of using the PATH
NIX_LDFLAGS = "-L${R}/lib/R/lib";
NIX_LDFLAGS = lib.optionalString rLibrary "-L${R}/lib/R/lib";
# Disable finicky tests from dmlc core that fail in Hydra. XGboost team
# confirmed xgboost itself does not use this part of the dmlc code.