xgboost: use stdenv.hostPlatform.extensions.sharedLibrary

This commit is contained in:
Frederik Rietdijk 2019-06-15 10:42:19 +02:00
parent ce1fca183a
commit b7b6388db6

View file

@ -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