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