Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / monotone-viz / graphviz-2.0.nix
blob05a0abe93c521ca6638d0ec6742cfd6e6cbcf2a0
1 { lib
2 , stdenv
3 , fetchurl
4 , pkg-config
5 , libX11
6 , libpng
7 , libjpeg
8 , expat
9 , libXaw
10 , bison
11 , libtool
12 , fontconfig
13 , pango
14 , gd
15 , libwebp
18 stdenv.mkDerivation rec {
19   pname = "graphviz";
20   version = "2.0";
22   src = fetchurl {
23     url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-${version}.tar.gz";
24     sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
25   };
27   nativeBuildInputs = [ pkg-config ];
28   buildInputs = [
29     libX11
30     libpng
31     libjpeg
32     expat
33     libXaw
34     bison
35     libtool
36     fontconfig
37     pango
38     gd
39     libwebp
40   ];
42   hardeningDisable = [ "format" "fortify" ];
44   configureFlags =
45     [
46       "--with-pngincludedir=${libpng.dev}/include"
47       "--with-pnglibdir=${libpng.out}/lib"
48       "--with-jpegincludedir=${libjpeg.dev}/include"
49       "--with-jpeglibdir=${libjpeg.out}/lib"
50       "--with-expatincludedir=${expat.dev}/include"
51       "--with-expatlibdir=${expat.out}/lib"
52       "--with-ltdl-include=${libtool}/include"
53       "--with-ltdl-lib=${libtool.lib}/lib"
54     ]
55     ++ lib.optional (libX11 == null) "--without-x";
57   meta = {
58     description = "A program for visualising graphs";
59     homepage = "http://www.graphviz.org/";
60     branch = "2.0";
61     platforms = lib.platforms.unix;
62   };