about summary refs log tree commit diff
path: root/pkgs/tools/graphics/graphviz/default.nix
blob: 1de8e9a9e8f2aa25f096409520bcc8d8bfbae833 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{stdenv, fetchurl, x11, libpng, libjpeg, expat, libXaw, yacc, libtool}:

assert libpng != null && libjpeg != null && expat != null;

stdenv.mkDerivation {
  name = "graphviz-2.4";

  builder = ./builder.sh;
  src = fetchurl {
    url = http://nix.cs.uu.nl/dist/tarballs/graphviz-2.4.tar.gz;
    md5 = "f1074d38a7eeb5e5b2ebfdb643aebf8a";
  };

  buildInputs = [x11 libpng libjpeg expat libXaw yacc libtool];
  configureFlags = [
    (if x11 == null then "--without-x" else "")
  ];
  
  inherit libpng libjpeg expat;
}