2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, boost, flatbuffers, rapidjson, spdlog, zlib }:
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vowpal-wabbit";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "9.0.1";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "VowpalWabbit";
|
|
|
|
repo = "vowpal_wabbit";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-ZUurY2bmTKKIW4GR4oiIpLxb6DSRUNJI/EyNSOu9D9c=";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
boost
|
2021-04-05 15:23:46 +00:00
|
|
|
flatbuffers
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
# -DBUILD_TESTS=OFF is set as both it saves time in the build and the default
|
|
|
|
# cmake flags appended by the builder include -DBUILD_TESTING=OFF for which
|
|
|
|
# this is the equivalent flag.
|
2021-04-05 15:23:46 +00:00
|
|
|
# Flatbuffers are an optional feature.
|
|
|
|
# BUILD_FLATBUFFERS=ON turns it on. This will still consume Flatbuffers as a
|
|
|
|
# system dependency
|
2021-03-19 17:17:44 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DVW_INSTALL=ON"
|
|
|
|
"-DBUILD_TESTS=OFF"
|
|
|
|
"-DBUILD_JAVA=OFF"
|
|
|
|
"-DBUILD_PYTHON=OFF"
|
|
|
|
"-DUSE_LATEST_STD=ON"
|
|
|
|
"-DRAPIDJSON_SYS_DEP=ON"
|
2021-04-05 15:23:46 +00:00
|
|
|
"-DFMT_SYS_DEP=ON"
|
|
|
|
"-DSPDLOG_SYS_DEP=ON"
|
|
|
|
"-DBUILD_FLATBUFFERS=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;
|
|
|
|
};
|
|
|
|
}
|