xgboost: init at 2016-05-14
This commit is contained in:
parent
7fdce2feb0
commit
c403235585
30
pkgs/development/libraries/xgboost/default.nix
Normal file
30
pkgs/development/libraries/xgboost/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, fetchgit }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "xgboost-${version}";
|
||||||
|
version = "2016-05-14";
|
||||||
|
|
||||||
|
# needs submodules
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://github.com/dmlc/xgboost";
|
||||||
|
rev = "9c26566eb09733423f821f139938ff4105c3775d";
|
||||||
|
sha256 = "0nmhgl70mnc2igkfppdw2in66zdczzsqxrlsb4bknrglpp3axnm1";
|
||||||
|
};
|
||||||
|
|
||||||
|
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";
|
||||||
|
license = licenses.apl20;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ abbradar ];
|
||||||
|
};
|
||||||
|
}
|
@ -9297,6 +9297,8 @@ in
|
|||||||
|
|
||||||
xalanc = callPackage ../development/libraries/xalanc {};
|
xalanc = callPackage ../development/libraries/xalanc {};
|
||||||
|
|
||||||
|
xgboost = callPackage ../development/libraries/xgboost { };
|
||||||
|
|
||||||
# Avoid using this. It isn't really a wrapper anymore, but we keep the name.
|
# Avoid using this. It isn't really a wrapper anymore, but we keep the name.
|
||||||
xlibsWrapper = callPackage ../development/libraries/xlibs-wrapper {
|
xlibsWrapper = callPackage ../development/libraries/xlibs-wrapper {
|
||||||
packages = [
|
packages = [
|
||||||
|
@ -26610,6 +26610,28 @@ in modules // {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xgboost = buildPythonPackage rec {
|
||||||
|
name = "xgboost-${version}";
|
||||||
|
|
||||||
|
inherit (pkgs.xgboost) version src meta;
|
||||||
|
|
||||||
|
propagatedBuildInputs = with self; [ scipy ];
|
||||||
|
buildInputs = with self; [ nose ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
cd python-package
|
||||||
|
|
||||||
|
cat <<EOF >xgboost/libpath.py
|
||||||
|
def find_lib_path():
|
||||||
|
return ["${pkgs.xgboost}/lib/libxgboost.so"]
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
rm -rf $out/xgboost
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
xkcdpass = buildPythonPackage rec {
|
xkcdpass = buildPythonPackage rec {
|
||||||
name = "xkcdpass-${version}";
|
name = "xkcdpass-${version}";
|
||||||
version = "1.4.2";
|
version = "1.4.2";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user