Unverified Commit 3a3d97eb authored by Luna Nova's avatar Luna Nova
Browse files

openhmd: fix CMake 4 build

openhmd is unmaintained so substituting for CMake 4 compat

See #445575 to decide if something should be done about OpenHMD being
unmaintained
parent ace81c54
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -26,6 +26,13 @@ stdenv.mkDerivation rec {
    sha256 = "1hkpdl4zgycag5k8njvqpx01apxmm8m8pvhlsxgxpqiqy9a38ccg";
  };

  # substitute for CMake 4 compat
  # "OpenHMD is currently NOT ACTIVELY MAINTAINED" in upstream README
  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)"
  '';

  nativeBuildInputs = [
    cmake
    pkg-config