xpdf: fix build on darwin (still broken in runtime)

+20
+15
pkgs/applications/misc/xpdf/cmake_version.patch
···
··· 1 + 2 + Fix "No known features for CXX compiler", see 3 + https://cmake.org/pipermail/cmake/2016-December/064733.html and the note at 4 + https://cmake.org/cmake/help/v3.10/command/cmake_minimum_required.html 5 + --- a/CMakeLists.txt 6 + +++ b/CMakeLists.txt 7 + @@ -8,7 +8,7 @@ 8 + # 9 + #======================================================================== 10 + 11 + -cmake_minimum_required(VERSION 2.8.8) 12 + +cmake_minimum_required(VERSION 3.1.0) 13 + 14 + project(xpdf) 15 +
+5
pkgs/applications/misc/xpdf/default.nix
··· 17 sha256 = "1mhn89738vjva14xr5gblc2zrdgzmpqbbjdflqdmpqv647294ggz"; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 cmakeFlags = ["-DSYSTEM_XPDFRC=/etc/xpdfrc" "-DA4_PAPER=ON"];
··· 17 sha256 = "1mhn89738vjva14xr5gblc2zrdgzmpqbbjdflqdmpqv647294ggz"; 18 }; 19 20 + # Fix "No known features for CXX compiler", see 21 + # https://cmake.org/pipermail/cmake/2016-December/064733.html and the note at 22 + # https://cmake.org/cmake/help/v3.10/command/cmake_minimum_required.html 23 + patches = stdenv.lib.optional stdenv.isDarwin ./cmake_version.patch; 24 + 25 nativeBuildInputs = [ cmake ]; 26 27 cmakeFlags = ["-DSYSTEM_XPDFRC=/etc/xpdfrc" "-DA4_PAPER=ON"];