graphviz: Explicitly specify libltdl directories

This should prevent the build from picking up /usr/lib/libltdl.so in
non-chroot builds on non-nixOS.

+4 -1
+4 -1
pkgs/tools/graphics/graphviz/base.nix
··· 31 31 CPPFLAGS = stdenv.lib.optionalString (xorg != null && stdenv.isDarwin) 32 32 "-I${cairo.dev}/include/cairo"; 33 33 34 - configureFlags = optional (xorg == null) "--without-x"; 34 + configureFlags = [ 35 + "--with-ltdl-lib=${libtool.lib}/lib" 36 + "--with-ltdl-include=${libtool}/include" 37 + ] ++ stdenv.lib.optional (xorg == null) [ "--without-x" ]; 35 38 36 39 postPatch = '' 37 40 for f in $(find . -name Makefile.in); do