* Added Graphviz.

svn path=/nixpkgs/trunk/; revision=580
This commit is contained in:
Eelco Dolstra 2003-12-10 09:51:32 +00:00
commit 716904fe0c
3 changed files with 40 additions and 0 deletions

View File

@ -93,6 +93,15 @@
stdenv = stdenv;
};
graphviz = (import ../tools/graphics/graphviz) {
fetchurl = fetchurl;
stdenv = stdenv;
x11 = xfree86;
libpng = libpng;
libjpeg = libjpeg;
expat = expat;
};
### SHELLS

View File

@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$x11 $libpng $libjpeg $expat $freetype"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd graphviz-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@ -0,0 +1,21 @@
{stdenv, fetchurl, x11, libpng, libjpeg, expat}:
assert !isNull x11 && !isNull libpng && !isNull libjpeg
&& !isNull expat;
derivation {
name = "graphviz-1.10";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-1.10.tar.gz;
md5 = "e1402531abff68d146bf94e72b44dc2a";
};
stdenv = stdenv;
x11 = x11;
libpng = libpng;
libjpeg = libjpeg;
expat = expat;
}