2022-12-02 08:20:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, eigen, rapidjson, spdlog, zlib }:
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vowpal-wabbit";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "9.6.0";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "VowpalWabbit";
|
|
|
|
repo = "vowpal_wabbit";
|
|
|
|
rev = version;
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-iSsxpeTRZjIhZaYBeoKLHl9j1aBIXWjONmAInmKvU/I=";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
patches = [
|
|
|
|
# Fix x86_64-linux build by adding missing include
|
|
|
|
# https://github.com/VowpalWabbit/vowpal_wabbit/pull/4275
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/VowpalWabbit/vowpal_wabbit/commit/0cb410dfc885ca1ecafd1f8a962b481574fb3b82.patch";
|
|
|
|
sha256 = "sha256-bX3eJ+vMTEMAo3EiESQTDryBP0h2GtnMa/Fz0rTeaNY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
boost
|
2022-12-02 08:20:57 +00:00
|
|
|
eigen
|
2021-03-19 17:17:44 +00:00
|
|
|
rapidjson
|
2021-04-05 15:23:46 +00:00
|
|
|
spdlog
|
2021-03-19 17:17:44 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DVW_INSTALL=ON"
|
|
|
|
"-DBUILD_JAVA=OFF"
|
|
|
|
"-DBUILD_PYTHON=OFF"
|
|
|
|
"-DRAPIDJSON_SYS_DEP=ON"
|
2021-04-05 15:23:46 +00:00
|
|
|
"-DFMT_SYS_DEP=ON"
|
|
|
|
"-DSPDLOG_SYS_DEP=ON"
|
2022-12-02 08:20:57 +00:00
|
|
|
"-DVW_BOOST_MATH_SYS_DEP=ON"
|
|
|
|
"-DVW_EIGEN_SYS_DEP=ON"
|
2021-03-19 17:17:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Machine learning system focused on online reinforcement learning";
|
|
|
|
homepage = "https://github.com/VowpalWabbit/vowpal_wabbit/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
longDescription = ''
|
|
|
|
Machine learning system which pushes the frontier of machine learning with techniques such as online,
|
|
|
|
hashing, allreduce, reductions, learning2search, active, and interactive and reinforcement learning
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ jackgerrits ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|