gl2ps: fix build with cmake v4

This commit is contained in:
qbisi
2025-09-26 17:27:30 +08:00
parent bb7c2bab61
commit 4eae815d75
+6
View File
@@ -19,6 +19,12 @@ stdenv.mkDerivation rec {
sha256 = "1sgzv547h7hrskb9qd0x5yp45kmhvibjwj2mfswv95lg070h074d";
};
# fix build with cmake v4
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'cmake_minimum_required(VERSION 2.8 FATAL_ERROR)' 'cmake_minimum_required(VERSION 3.10)'
'';
nativeBuildInputs = [
cmake
];