···11-22-Fix "No known features for CXX compiler", see
33-https://cmake.org/pipermail/cmake/2016-December/064733.html and the note at
44-https://cmake.org/cmake/help/v3.10/command/cmake_minimum_required.html
55---- a/CMakeLists.txt
66-+++ b/CMakeLists.txt
77-@@ -8,7 +8,7 @@
88- #
99- #========================================================================
1010-1111--cmake_minimum_required(VERSION 2.8.8)
1212-+cmake_minimum_required(VERSION 3.1.0)
1313-1414- project(xpdf)
1515-
+4-1
pkgs/applications/misc/xpdf/default.nix
···2222 # Fix "No known features for CXX compiler", see
2323 # https://cmake.org/pipermail/cmake/2016-December/064733.html and the note at
2424 # https://cmake.org/cmake/help/v3.10/command/cmake_minimum_required.html
2525- patches = lib.optional stdenv.isDarwin ./cmake_version.patch;
2525+ postPatch = lib.optionalString stdenv.isDarwin ''
2626+ substituteInPlace CMakeLists.txt --replace \
2727+ 'cmake_minimum_required(VERSION 2.8.12)' 'cmake_minimum_required(VERSION 3.1.0)'
2828+ '';
26292730 nativeBuildInputs =
2831 [ cmake ]