pkgs/development/libraries: stdenv.lib -> lib
This commit is contained in:
committed by
Jonathan Ringer
parent
046d24424e
commit
66e44425c6
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake ninja pkg-config ];
|
||||
|
||||
# Not sure when and how to pass it. It seems an upstream bug anyway.
|
||||
CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isClang "-std=c++11";
|
||||
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
|
||||
|
||||
cmakeFlags = [
|
||||
(mkFlag true "XPDF_HEADERS")
|
||||
|
||||
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake ninja pkg-config ];
|
||||
|
||||
# Workaround #54606
|
||||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
sed -i -e '1i cmake_policy(SET CMP0025 NEW)' CMakeLists.txt
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user