mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
xpdf: fix build failure on darwin
convert the patch to substituteInPlace.
This commit is contained in:
parent
062faf0525
commit
6ab8f2aea5
@ -1,15 +0,0 @@
|
||||
|
||||
Fix "No known features for CXX compiler", see
|
||||
https://cmake.org/pipermail/cmake/2016-December/064733.html and the note at
|
||||
https://cmake.org/cmake/help/v3.10/command/cmake_minimum_required.html
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -8,7 +8,7 @@
|
||||
#
|
||||
#========================================================================
|
||||
|
||||
-cmake_minimum_required(VERSION 2.8.8)
|
||||
+cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(xpdf)
|
||||
|
@ -22,7 +22,10 @@ stdenv.mkDerivation rec {
|
||||
# Fix "No known features for CXX compiler", see
|
||||
# https://cmake.org/pipermail/cmake/2016-December/064733.html and the note at
|
||||
# https://cmake.org/cmake/help/v3.10/command/cmake_minimum_required.html
|
||||
patches = lib.optional stdenv.isDarwin ./cmake_version.patch;
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace CMakeLists.txt --replace \
|
||||
'cmake_minimum_required(VERSION 2.8.12)' 'cmake_minimum_required(VERSION 3.1.0)'
|
||||
'';
|
||||
|
||||
nativeBuildInputs =
|
||||
[ cmake ]
|
||||
|
Loading…
Reference in New Issue
Block a user