vowpal-wabbit: 9.6.0 -> 9.10.0

emaryn 91fd2015 3e07499f

+15 -25
+15 -25
pkgs/by-name/vo/vowpal-wabbit/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchFromGitHub, 5 - fetchpatch, 6 5 cmake, 7 6 boost, 8 7 eigen, ··· 13 12 14 13 stdenv.mkDerivation rec { 15 14 pname = "vowpal-wabbit"; 16 - version = "9.6.0"; 15 + version = "9.10.0"; 17 16 18 17 src = fetchFromGitHub { 19 18 owner = "VowpalWabbit"; 20 19 repo = "vowpal_wabbit"; 21 - rev = version; 22 - sha256 = "sha256-iSsxpeTRZjIhZaYBeoKLHl9j1aBIXWjONmAInmKvU/I="; 20 + tag = version; 21 + hash = "sha256-HKxhEB4ph2tOWgvYngYTcv0OCMISj3KqZpP2zsEUPs0="; 22 + fetchSubmodules = true; 23 23 }; 24 24 25 - patches = [ 26 - # Fix x86_64-linux build by adding missing include 27 - # https://github.com/VowpalWabbit/vowpal_wabbit/pull/4275 28 - (fetchpatch { 29 - url = "https://github.com/VowpalWabbit/vowpal_wabbit/commit/0cb410dfc885ca1ecafd1f8a962b481574fb3b82.patch"; 30 - sha256 = "sha256-bX3eJ+vMTEMAo3EiESQTDryBP0h2GtnMa/Fz0rTeaNY="; 31 - }) 32 - 33 - # Fix gcc-13 build: 34 - # https://github.com/VowpalWabbit/vowpal_wabbit/pull/4657 35 - (fetchpatch { 36 - name = "gcc-13.patch"; 37 - url = "https://github.com/VowpalWabbit/vowpal_wabbit/commit/a541d85a66088d2b74fa2562d32fecb68af33c58.patch"; 38 - includes = [ "vowpalwabbit/core/include/vw/core/named_labels.h" ]; 39 - hash = "sha256-JAuLDe5JtlE7/043RSIKM20Qr77rmuE0rVg/DGc95MY="; 40 - }) 41 - ]; 25 + postPatch = '' 26 + substituteInPlace CMakeLists.txt \ 27 + --replace-fail "set(VW_CXX_STANDARD 11)" "set(VW_CXX_STANDARD 14)" 28 + # Avoid duplicate add RapidJSON 29 + substituteInPlace ext_libs/ext_libs.cmake \ 30 + --replace-fail "add_library(RapidJSON INTERFACE)" "" 31 + ''; 42 32 43 33 nativeBuildInputs = [ cmake ]; 44 34 ··· 61 51 "-DVW_EIGEN_SYS_DEP=ON" 62 52 ]; 63 53 64 - meta = with lib; { 54 + meta = { 65 55 description = "Machine learning system focused on online reinforcement learning"; 66 56 homepage = "https://github.com/VowpalWabbit/vowpal_wabbit/"; 67 - license = licenses.bsd3; 57 + license = lib.licenses.bsd3; 68 58 longDescription = '' 69 59 Machine learning system which pushes the frontier of machine learning with techniques such as online, 70 60 hashing, allreduce, reductions, learning2search, active, and interactive and reinforcement learning 71 61 ''; 72 - maintainers = with maintainers; [ jackgerrits ]; 73 - platforms = platforms.unix; 62 + maintainers = with lib.maintainers; [ jackgerrits ]; 63 + platforms = lib.platforms.unix; 74 64 }; 75 65 }