2016-05-14 00:03:54 +01:00
|
|
|
{ stdenv, fetchgit }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xgboost-${version}";
|
2016-08-13 01:09:01 +01:00
|
|
|
version = "0.60";
|
2016-05-14 00:03:54 +01:00
|
|
|
|
|
|
|
# needs submodules
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/dmlc/xgboost";
|
2016-08-13 01:09:01 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "0536vfl59n9vlagl1cpdl06c9y19dscwhwdzvi27zk5nc5qb6rdq";
|
2016-05-14 00:03:54 +01: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";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/dmlc/xgboost;
|
2016-05-14 00:38:12 +01:00
|
|
|
license = licenses.asl20;
|
2016-05-14 00:03:54 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|