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

utox: fix build with cmake4

parent fac5e90a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -61,6 +61,11 @@ stdenv.mkDerivation rec {
    "-DENABLE_TESTS=${if doCheck then "ON" else "OFF"}"
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.2)" "cmake_minimum_required(VERSION 3.10)"
  '';

  doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
  nativeCheckInputs = [ check ];