Commit 953727ad authored by Stanisław Pitucha's avatar Stanisław Pitucha
Browse files

caffe: fix build

Boost doesn't split out the system module anymore.
parent 6bc6b48a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -130,9 +130,12 @@ stdenv.mkDerivation rec {
  );

  postPatch = ''
    substituteInPlace src/caffe/util/io.cpp --replace \
    substituteInPlace src/caffe/util/io.cpp --replace-fail \
      'SetTotalBytesLimit(kProtoReadBytesLimit, 536870912)' \
      'SetTotalBytesLimit(kProtoReadBytesLimit)'
    substituteInPlace cmake/Dependencies.cmake --replace-fail \
      'find_package(Boost 1.55 REQUIRED COMPONENTS system thread filesystem)' \
      'find_package(Boost 1.55 REQUIRED COMPONENTS thread filesystem)'
  '';

  preConfigure = lib.optionalString pythonSupport ''