summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorJack Gerrits <jack@jackgerrits.com>2021-03-17 13:20:48 -0400
committerCole Helbling <cole.e.helbling@outlook.com>2021-03-18 18:41:07 -0700
commita364fb65571b0180552c1b5ffded1c3d3c2e3ad3 (patch)
tree19f13a25fc42819fe52faf8f6bc8fbd6228746b5 /pkgs/applications/science
parentf382f89af5065d3b48c573087fb54a8eb643aa57 (diff)
vowpal-wabbit: init at 8.9.2
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/machine-learning/vowpal-wabbit/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/science/machine-learning/vowpal-wabbit/default.nix b/pkgs/applications/science/machine-learning/vowpal-wabbit/default.nix
new file mode 100644
index 000000000000..771d6227a86c
--- /dev/null
+++ b/pkgs/applications/science/machine-learning/vowpal-wabbit/default.nix
@@ -0,0 +1,46 @@
+{ lib, stdenv, fetchFromGitHub, cmake, boost169, rapidjson, zlib }:
+
+stdenv.mkDerivation rec {
+ pname = "vowpal-wabbit";
+ version = "8.9.2";
+
+ src = fetchFromGitHub {
+ owner = "VowpalWabbit";
+ repo = "vowpal_wabbit";
+ rev = version;
+ sha256 = "0ng1kip7sh3br85691xvszxd6lhv8nhfkgqkpwxd89wy85znzhmd";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = [
+ boost169
+ rapidjson
+ 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.
+ cmakeFlags = [
+ "-DVW_INSTALL=ON"
+ "-DBUILD_TESTS=OFF"
+ "-DBUILD_JAVA=OFF"
+ "-DBUILD_PYTHON=OFF"
+ "-DUSE_LATEST_STD=ON"
+ "-DRAPIDJSON_SYS_DEP=ON"
+ ];
+
+ meta = with lib; {
+ broken = stdenv.isAarch32 || stdenv.isAarch64;
+ 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;
+ };
+}