mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
Merge pull request #54611 from veprbl/pr/libsForQt5.poppler_fix
libsForQt5.poppler: fix on darwin
This commit is contained in:
commit
e6f2816502
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue