2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, xlibsWrapper
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
|
|
|
, expat
|
|
|
|
, libXaw
|
|
|
|
, bison
|
|
|
|
, libtool
|
|
|
|
, fontconfig
|
|
|
|
, pango
|
|
|
|
, gd
|
|
|
|
, libwebp
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "graphviz";
|
|
|
|
version = "2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
xlibsWrapper
|
|
|
|
libpng
|
|
|
|
libjpeg
|
|
|
|
expat
|
|
|
|
libXaw
|
|
|
|
bison
|
|
|
|
libtool
|
|
|
|
fontconfig
|
|
|
|
pango
|
|
|
|
gd
|
|
|
|
libwebp
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" "fortify" ];
|
|
|
|
|
|
|
|
configureFlags =
|
2021-12-06 16:07:01 +00:00
|
|
|
[
|
|
|
|
"--with-pngincludedir=${libpng.dev}/include"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--with-pnglibdir=${libpng.out}/lib"
|
|
|
|
"--with-jpegincludedir=${libjpeg.dev}/include"
|
|
|
|
"--with-jpeglibdir=${libjpeg.out}/lib"
|
|
|
|
"--with-expatincludedir=${expat.dev}/include"
|
|
|
|
"--with-expatlibdir=${expat.out}/lib"
|
|
|
|
"--with-ltdl-include=${libtool}/include"
|
|
|
|
"--with-ltdl-lib=${libtool.lib}/lib"
|
|
|
|
]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional (xlibsWrapper == null) "--without-x";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A program for visualising graphs";
|
|
|
|
homepage = "http://www.graphviz.org/";
|
|
|
|
branch = "2.0";
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|