xgboost: 1.7.4 -> 1.7.5
This commit is contained in:
parent
ed0a987755
commit
4c0970c216
1 changed files with 11 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
, llvmPackages
|
, llvmPackages
|
||||||
, R
|
, R
|
||||||
, rPackages
|
, rPackages
|
||||||
}:
|
}@inputs:
|
||||||
|
|
||||||
assert ncclSupport -> cudaSupport;
|
assert ncclSupport -> cudaSupport;
|
||||||
# Disable regular tests when building the R package
|
# Disable regular tests when building the R package
|
||||||
|
@ -22,6 +22,14 @@ assert ncclSupport -> cudaSupport;
|
||||||
# tests.
|
# tests.
|
||||||
assert rLibrary -> doCheck != true;
|
assert rLibrary -> doCheck != true;
|
||||||
|
|
||||||
|
let
|
||||||
|
# This ensures xgboost gets the correct libstdc++ when
|
||||||
|
# built with cuda support. This may be removed once
|
||||||
|
# #226165 rewrites cudaStdenv
|
||||||
|
inherit (cudaPackages) backendStdenv;
|
||||||
|
stdenv = if cudaSupport then backendStdenv else inputs.stdenv;
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pnameBase = "xgboost";
|
pnameBase = "xgboost";
|
||||||
# prefix with r when building the R library
|
# prefix with r when building the R library
|
||||||
|
@ -37,14 +45,14 @@ stdenv.mkDerivation rec {
|
||||||
# in \
|
# in \
|
||||||
# rWrapper.override{ packages = [ xgb ]; }"
|
# rWrapper.override{ packages = [ xgb ]; }"
|
||||||
pname = lib.optionalString rLibrary "r-" + pnameBase;
|
pname = lib.optionalString rLibrary "r-" + pnameBase;
|
||||||
version = "1.7.4";
|
version = "1.7.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dmlc";
|
owner = "dmlc";
|
||||||
repo = pnameBase;
|
repo = pnameBase;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
hash = "sha256-HGS9w4g2+Aw5foKjHK/XQvSCnFHUswhzAsQf6XkdvOI=";
|
hash = "sha256-IBqtyz40VVHdncibnZQAe5oDsjb5isWBYQ6pGx/zt38=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ]
|
nativeBuildInputs = [ cmake ]
|
||||||
|
|
Loading…
Reference in a new issue