2016-05-14 02:03:54 +03:00
|
|
|
{ stdenv, fetchgit }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xgboost-${version}";
|
|
|
|
version = "2016-05-14";
|
|
|
|
|
|
|
|
# needs submodules
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/dmlc/xgboost";
|
|
|
|
rev = "9c26566eb09733423f821f139938ff4105c3775d";
|
2016-06-02 14:26:44 +03:00
|
|
|
sha256 = "1d7lnbwxwakclqqfjwyk9w3wd2clkihdr6ljs5z08ydiaspri093";
|
2016-05-14 02:03:54 +03:00
|
|
|
};
|
|
|
|
|
2016-06-19 11:18:30 +03:00
|
|
|
postPatch = "sed '1i#include <cmath>' -i src/tree/param.h";
|
|
|
|
|
2016-05-14 02:03:54 +03:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r include $out
|
|
|
|
install -Dm755 lib/libxgboost.so $out/lib/libxgboost.so
|
|
|
|
install -Dm755 xgboost $out/bin/xgboost
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library";
|
|
|
|
homepage = "https://github.com/dmlc/xgboost";
|
2016-05-14 02:38:12 +03:00
|
|
|
license = licenses.asl20;
|
2016-05-14 02:03:54 +03:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|