gl2ps: fix build with cmake v4 (#446287)

This commit is contained in:
Sandro
2025-09-27 00:38:24 +00:00
committed by GitHub
+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
];