osmid: fix build with cmake4

This commit is contained in:
Sigmanificient
2025-10-19 02:45:54 +02:00
parent a2c92aa347
commit d89867c8e7
+10
View File
@@ -18,6 +18,16 @@ stdenv.mkDerivation rec {
sha256 = "1s1wsrp6g6wb0y61xzxvaj59mwycrgy52r4h456086zkz10ls6hw";
};
postPatch = ''
# replace deprecated cmake version that are no longer supported by CMake > 4
# https://github.com/NixOS/nixpkgs/issues/445447
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required (VERSION 3.0)" "cmake_minimum_required (VERSION 3.10)"
substituteInPlace external_libs/oscpack_1_1_0/CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required (VERSION 3.10)"
'';
nativeBuildInputs = [ cmake ];
buildInputs = [