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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user