graphviz: Explicitly specify libltdl directories

This should prevent the build from picking up /usr/lib/libltdl.so in
non-chroot builds on non-nixOS.
This commit is contained in:
Josef Kemetmueller 2018-02-05 20:25:43 +00:00
parent d7000b03cd
commit ceeacd5205

View file

@ -31,7 +31,10 @@ stdenv.mkDerivation rec {
CPPFLAGS = stdenv.lib.optionalString (xorg != null && stdenv.isDarwin)
"-I${cairo.dev}/include/cairo";
configureFlags = optional (xorg == null) "--without-x";
configureFlags = [
"--with-ltdl-lib=${libtool.lib}/lib"
"--with-ltdl-include=${libtool}/include"
] ++ stdenv.lib.optional (xorg == null) [ "--without-x" ];
postPatch = ''
for f in $(find . -name Makefile.in); do