vowpal-wabbit: 9.0.1 -> 9.6.0

- flatbuffers removed as a dep as the upstream doesn't support installing with flatbuffer support currently and this is an experimental feature
- BUILD_TESTS workaround removed as upstream now properly understands BUILD_TESTING
- `eigen` is a new dependency in this release
- Removed `USE_LATEST_STD` as it was causing an ICE in clang when building on an m1 macbook and it is not strictly necessary for the package

authored by

Jack Gerrits and committed by
GitHub
c5be637c 385fc8e4

+15 -13
+15 -13
pkgs/applications/science/machine-learning/vowpal-wabbit/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, boost, flatbuffers, rapidjson, spdlog, zlib }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, eigen, rapidjson, spdlog, zlib }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "vowpal-wabbit"; 5 - version = "9.0.1"; 5 + version = "9.6.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "VowpalWabbit"; 9 9 repo = "vowpal_wabbit"; 10 10 rev = version; 11 - sha256 = "sha256-ZUurY2bmTKKIW4GR4oiIpLxb6DSRUNJI/EyNSOu9D9c="; 11 + sha256 = "sha256-iSsxpeTRZjIhZaYBeoKLHl9j1aBIXWjONmAInmKvU/I="; 12 12 }; 13 13 14 + patches = [ 15 + # Fix x86_64-linux build by adding missing include 16 + # https://github.com/VowpalWabbit/vowpal_wabbit/pull/4275 17 + (fetchpatch { 18 + url = "https://github.com/VowpalWabbit/vowpal_wabbit/commit/0cb410dfc885ca1ecafd1f8a962b481574fb3b82.patch"; 19 + sha256 = "sha256-bX3eJ+vMTEMAo3EiESQTDryBP0h2GtnMa/Fz0rTeaNY="; 20 + }) 21 + ]; 22 + 14 23 nativeBuildInputs = [ cmake ]; 15 24 16 25 buildInputs = [ 17 26 boost 18 - flatbuffers 27 + eigen 19 28 rapidjson 20 29 spdlog 21 30 zlib 22 31 ]; 23 32 24 - # -DBUILD_TESTS=OFF is set as both it saves time in the build and the default 25 - # cmake flags appended by the builder include -DBUILD_TESTING=OFF for which 26 - # this is the equivalent flag. 27 - # Flatbuffers are an optional feature. 28 - # BUILD_FLATBUFFERS=ON turns it on. This will still consume Flatbuffers as a 29 - # system dependency 30 33 cmakeFlags = [ 31 34 "-DVW_INSTALL=ON" 32 - "-DBUILD_TESTS=OFF" 33 35 "-DBUILD_JAVA=OFF" 34 36 "-DBUILD_PYTHON=OFF" 35 - "-DUSE_LATEST_STD=ON" 36 37 "-DRAPIDJSON_SYS_DEP=ON" 37 38 "-DFMT_SYS_DEP=ON" 38 39 "-DSPDLOG_SYS_DEP=ON" 39 - "-DBUILD_FLATBUFFERS=ON" 40 + "-DVW_BOOST_MATH_SYS_DEP=ON" 41 + "-DVW_EIGEN_SYS_DEP=ON" 40 42 ]; 41 43 42 44 meta = with lib; {