Unverified Commit 8c0659e4 authored by Stanisław Pitucha's avatar Stanisław Pitucha Committed by GitHub
Browse files

caffe: fix build (#502545)

parents d13b002d 953727ad
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 ''