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 }: 2 3 stdenv.mkDerivation rec { 4 pname = "vowpal-wabbit"; 5 - version = "9.0.1"; 6 7 src = fetchFromGitHub { 8 owner = "VowpalWabbit"; 9 repo = "vowpal_wabbit"; 10 rev = version; 11 - sha256 = "sha256-ZUurY2bmTKKIW4GR4oiIpLxb6DSRUNJI/EyNSOu9D9c="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 buildInputs = [ 17 boost 18 - flatbuffers 19 rapidjson 20 spdlog 21 zlib 22 ]; 23 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 cmakeFlags = [ 31 "-DVW_INSTALL=ON" 32 - "-DBUILD_TESTS=OFF" 33 "-DBUILD_JAVA=OFF" 34 "-DBUILD_PYTHON=OFF" 35 - "-DUSE_LATEST_STD=ON" 36 "-DRAPIDJSON_SYS_DEP=ON" 37 "-DFMT_SYS_DEP=ON" 38 "-DSPDLOG_SYS_DEP=ON" 39 - "-DBUILD_FLATBUFFERS=ON" 40 ]; 41 42 meta = with lib; {
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, eigen, rapidjson, spdlog, zlib }: 2 3 stdenv.mkDerivation rec { 4 pname = "vowpal-wabbit"; 5 + version = "9.6.0"; 6 7 src = fetchFromGitHub { 8 owner = "VowpalWabbit"; 9 repo = "vowpal_wabbit"; 10 rev = version; 11 + sha256 = "sha256-iSsxpeTRZjIhZaYBeoKLHl9j1aBIXWjONmAInmKvU/I="; 12 }; 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 + 23 nativeBuildInputs = [ cmake ]; 24 25 buildInputs = [ 26 boost 27 + eigen 28 rapidjson 29 spdlog 30 zlib 31 ]; 32 33 cmakeFlags = [ 34 "-DVW_INSTALL=ON" 35 "-DBUILD_JAVA=OFF" 36 "-DBUILD_PYTHON=OFF" 37 "-DRAPIDJSON_SYS_DEP=ON" 38 "-DFMT_SYS_DEP=ON" 39 "-DSPDLOG_SYS_DEP=ON" 40 + "-DVW_BOOST_MATH_SYS_DEP=ON" 41 + "-DVW_EIGEN_SYS_DEP=ON" 42 ]; 43 44 meta = with lib; {