1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{ lib
, stdenv
, fetchurl
, pkg-config
, libX11
, libpng
, libjpeg
, expat
, libXaw
, bison
, libtool
, fontconfig
, pango
, gd
, libwebp
}:
stdenv.mkDerivation rec {
pname = "graphviz";
version = "2.0";
src = fetchurl {
url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-${version}.tar.gz";
sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
libpng
libjpeg
expat
libXaw
bison
libtool
fontconfig
pango
gd
libwebp
];
hardeningDisable = [ "format" "fortify" ];
configureFlags =
[
"--with-pngincludedir=${libpng.dev}/include"
"--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"
]
++ lib.optional (libX11 == null) "--without-x";
meta = {
description = "Program for visualising graphs";
homepage = "http://www.graphviz.org/";
branch = "2.0";
platforms = lib.platforms.unix;
};
}
|