|
|
|
@ -33,8 +33,10 @@ stdenv.mkDerivation rec { |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja pkgconfig ]; |
|
|
|
|
|
|
|
|
|
# Not sure when and how to pass it. It seems an upstream bug anyway. |
|
|
|
|
CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isClang "-std=c++14"; |
|
|
|
|
# Workaround #54606 |
|
|
|
|
preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' |
|
|
|
|
sed -i -e '1i cmake_policy(SET CMP0025 NEW)' CMakeLists.txt |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
cmakeFlags = [ |
|
|
|
|
(mkFlag true "UNSTABLE_API_ABI_HEADERS") # previously "XPDF_HEADERS" |
|
|
|
|