2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, xlibsWrapper, libpng, libjpeg, expat, libXaw
|
2021-03-14 18:50:12 +01:00
|
|
|
, bison, libtool, fontconfig, pango, gd, libwebp
|
2010-07-05 21:04:33 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "graphviz-2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/${name}.tar.gz";
|
|
|
|
sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
|
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2016-05-30 21:39:34 +02:00
|
|
|
buildInputs = [
|
2021-03-14 18:50:12 +01:00
|
|
|
xlibsWrapper libpng libjpeg expat libXaw bison
|
2016-05-30 12:13:22 +02:00
|
|
|
libtool fontconfig pango gd libwebp
|
2016-05-30 21:39:34 +02:00
|
|
|
];
|
2016-02-23 16:03:14 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" "fortify" ];
|
2016-02-23 16:03:14 +01:00
|
|
|
|
2010-07-05 21:04:33 +02:00
|
|
|
configureFlags =
|
2016-04-16 19:37:32 +02:00
|
|
|
[ "--with-pngincludedir=${libpng.dev}/include"
|
2016-01-24 08:29:34 +01:00
|
|
|
"--with-pnglibdir=${libpng.out}/lib"
|
2016-04-16 19:36:59 +02:00
|
|
|
"--with-jpegincludedir=${libjpeg.dev}/include"
|
2016-01-24 08:29:29 +01:00
|
|
|
"--with-jpeglibdir=${libjpeg.out}/lib"
|
2016-04-16 18:49:30 +02:00
|
|
|
"--with-expatincludedir=${expat.dev}/include"
|
2016-01-24 08:29:09 +01:00
|
|
|
"--with-expatlibdir=${expat.out}/lib"
|
2016-11-24 08:28:56 +01:00
|
|
|
"--with-ltdl-include=${libtool}/include"
|
|
|
|
"--with-ltdl-lib=${libtool.lib}/lib"
|
2010-07-05 21:04:33 +02:00
|
|
|
]
|
2021-01-15 14:21:58 +01:00
|
|
|
++ lib.optional (xlibsWrapper == null) "--without-x";
|
2010-07-05 21:04:33 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A program for visualising graphs";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.graphviz.org/";
|
2014-10-07 08:32:49 +02:00
|
|
|
branch = "2.0";
|
2021-01-15 14:21:58 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2010-07-05 21:04:33 +02:00
|
|
|
};
|
|
|
|
}
|