osmid: fix build with cmake4 (#453382)

This commit is contained in:
Yohann Boniface
2025-10-23 21:34:40 +00:00
committed by GitHub
+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 = [