xgboost: use stdenv.hostPlatform.extensions.sharedLibrary
This commit is contained in:
parent
ce1fca183a
commit
b7b6388db6
|
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||||
++ lib.optional ncclSupport "-DUSE_NCCL=ON";
|
++ lib.optional ncclSupport "-DUSE_NCCL=ON";
|
||||||
|
|
||||||
installPhase = let
|
installPhase = let
|
||||||
libname = if stdenv.isDarwin then "libxgboost.dylib" else "libxgboost.so";
|
libname = "libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||||
in ''
|
in ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -r ../include $out
|
cp -r ../include $out
|
||||||
|
|
Loading…
Reference in New Issue