18 stdenv.mkDerivation rec {
23 url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-${version}.tar.gz";
24 sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
27 nativeBuildInputs = [ pkg-config ];
42 hardeningDisable = [ "format" "fortify" ];
46 "--with-pngincludedir=${libpng.dev}/include"
47 "--with-pnglibdir=${libpng.out}/lib"
48 "--with-jpegincludedir=${libjpeg.dev}/include"
49 "--with-jpeglibdir=${libjpeg.out}/lib"
50 "--with-expatincludedir=${expat.dev}/include"
51 "--with-expatlibdir=${expat.out}/lib"
52 "--with-ltdl-include=${libtool}/include"
53 "--with-ltdl-lib=${libtool.lib}/lib"
55 ++ lib.optional (libX11 == null) "--without-x";
58 description = "A program for visualising graphs";
59 homepage = "http://www.graphviz.org/";
61 platforms = lib.platforms.unix;