nsplist, plistcpp: fix build with cmake4 (#455004)

This commit is contained in:
Sandro
2025-10-31 09:58:38 +00:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -27,6 +27,11 @@ stdenv.mkDerivation {
flex -o src/NSPlistLexer.cpp <(tail --lines=+17 src/NSPlistLexer.l)
'';
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = with lib; {
maintainers = with maintainers; [ matthewbauer ];
description = "Parses .plist files";
+3
View File
@@ -21,6 +21,9 @@ stdenv.mkDerivation {
postPatch = ''
sed -i "1i #include <algorithm>" src/Plist.cpp
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required (VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [