2015-09-15 09:13:22 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, xlibsWrapper, libpng, libjpeg, expat, libXaw
|
2010-07-05 19:04:33 +00:00
|
|
|
, yacc, libtool, fontconfig, pango, gd
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert libpng != null && libjpeg != null && expat != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "graphviz-2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/${name}.tar.gz";
|
|
|
|
sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
|
|
|
|
};
|
|
|
|
|
2015-09-15 09:13:22 +00:00
|
|
|
buildInputs = [pkgconfig xlibsWrapper libpng libjpeg expat libXaw yacc libtool fontconfig pango gd];
|
2016-02-23 15:03:14 +00:00
|
|
|
|
|
|
|
hardening_format = false;
|
|
|
|
hardening_fortify = false;
|
|
|
|
|
2010-07-05 19:04:33 +00:00
|
|
|
configureFlags =
|
|
|
|
[ "--with-pngincludedir=${libpng}/include"
|
|
|
|
"--with-pnglibdir=${libpng}/lib"
|
|
|
|
"--with-jpegincludedir=${libjpeg}/include"
|
|
|
|
"--with-jpeglibdir=${libjpeg}/lib"
|
|
|
|
"--with-expatincludedir=${expat}/include"
|
|
|
|
"--with-expatlibdir=${expat}/lib"
|
|
|
|
]
|
2015-09-15 09:13:22 +00:00
|
|
|
++ stdenv.lib.optional (xlibsWrapper == null) "--without-x";
|
2010-07-05 19:04:33 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A program for visualising graphs";
|
|
|
|
homepage = http://www.graphviz.org/;
|
2014-10-07 06:32:49 +00:00
|
|
|
branch = "2.0";
|
2010-07-05 19:04:33 +00:00
|
|
|
};
|
|
|
|
}
|