Unverified Commit 273af306 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

utox: fix build with cmake4 (#453848)

parents 8a534680 c0e40f36
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 ];