2015-09-15 02:13:22 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, xlibsWrapper, libpng, libjpeg, expat, libXaw
|
2016-05-30 03:13:22 -07:00
|
|
|
, yacc, libtool, fontconfig, pango, gd, libwebp
|
2010-07-05 12:04:33 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2017-09-14 12:24:37 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-05-30 12:39:34 -07:00
|
|
|
buildInputs = [
|
2017-09-14 12:24:37 -07:00
|
|
|
xlibsWrapper libpng libjpeg expat libXaw yacc
|
2016-05-30 03:13:22 -07:00
|
|
|
libtool fontconfig pango gd libwebp
|
2016-05-30 12:39:34 -07:00
|
|
|
];
|
2016-02-23 07:03:14 -08:00
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "format" "fortify" ];
|
2016-02-23 07:03:14 -08:00
|
|
|
|
2010-07-05 12:04:33 -07:00
|
|
|
configureFlags =
|
2016-04-16 10:37:32 -07:00
|
|
|
[ "--with-pngincludedir=${libpng.dev}/include"
|
2016-01-23 23:29:34 -08:00
|
|
|
"--with-pnglibdir=${libpng.out}/lib"
|
2016-04-16 10:36:59 -07:00
|
|
|
"--with-jpegincludedir=${libjpeg.dev}/include"
|
2016-01-23 23:29:29 -08:00
|
|
|
"--with-jpeglibdir=${libjpeg.out}/lib"
|
2016-04-16 09:49:30 -07:00
|
|
|
"--with-expatincludedir=${expat.dev}/include"
|
2016-01-23 23:29:09 -08:00
|
|
|
"--with-expatlibdir=${expat.out}/lib"
|
2016-11-23 23:28:56 -08:00
|
|
|
"--with-ltdl-include=${libtool}/include"
|
|
|
|
"--with-ltdl-lib=${libtool.lib}/lib"
|
2010-07-05 12:04:33 -07:00
|
|
|
]
|
2015-09-15 02:13:22 -07:00
|
|
|
++ stdenv.lib.optional (xlibsWrapper == null) "--without-x";
|
2010-07-05 12:04:33 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A program for visualising graphs";
|
|
|
|
homepage = http://www.graphviz.org/;
|
2014-10-06 23:32:49 -07:00
|
|
|
branch = "2.0";
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-07-05 12:04:33 -07:00
|
|
|
};
|
|
|
|
}
|