Fix graphviz building on darwin
This commit is contained in:
parent
23f43527e1
commit
37b25a712e
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
|
{ stdenv, fetchurl, pkgconfig, libpng, libjpeg, expat, libXaw
|
||||||
, yacc, libtool, fontconfig, pango, gd, xlibs, gts, gettext
|
, yacc, libtool, fontconfig, pango, gd, xlibs, gts, gettext, cairo
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./fix-broken-memcp-signature.patch ];
|
patches = [ ./fix-broken-memcp-signature.patch ];
|
||||||
|
|
||||||
|
CPPFLAGS = stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") "-I${cairo}/include/cairo";
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-pngincludedir=${libpng}/include"
|
[ "--with-pngincludedir=${libpng}/include"
|
||||||
"--with-pnglibdir=${libpng}/lib"
|
"--with-pnglibdir=${libpng}/lib"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user