Unverified Commit e39a45fb authored by Rafael Ieda's avatar Rafael Ieda
Browse files

ispike: fix build with cmake4

parent 0720d4cf
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -3,9 +3,13 @@
  stdenv,
  fetchurl,
  cmake,
  boost,
  boost186,
}:

let
  boost = boost186;
in

stdenv.mkDerivation rec {
  pname = "ispike";
  version = "2.1.1";
@@ -17,6 +21,11 @@ stdenv.mkDerivation rec {

  postPatch = ''
    sed -i "1i #include <map>" include/iSpike/YarpConnection.hpp

    substituteInPlace CMakeLists.txt \
      --replace-fail "CMAKE_MINIMUM_REQUIRED (VERSION 2.6.2)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace src/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
  '';

  nativeBuildInputs = [ cmake ];