diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2003-12-10 09:51:32 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2003-12-10 09:51:32 +0000 |
commit | 716904fe0c2e6ef262ce415d6f67d927a77dd7c8 (patch) | |
tree | b27648ddc11899df0542445036826273a66ae0bd /pkgs/tools | |
parent | 233c7bd0f674b4b2c68ed1332b0c0d13ed7dedd6 (diff) | |
parent | e6db9b1caa9acc6ebd1a1e219ec084f2209ad68f (diff) |
* Added Graphviz.
svn path=/nixpkgs/trunk/; revision=580
Diffstat (limited to 'pkgs/tools')
-rwxr-xr-x | pkgs/tools/graphics/graphviz/builder.sh | 10 | ||||
-rw-r--r-- | pkgs/tools/graphics/graphviz/default.nix | 21 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/graphviz/builder.sh b/pkgs/tools/graphics/graphviz/builder.sh new file mode 100755 index 0000000000000..f37ee4412c2f8 --- /dev/null +++ b/pkgs/tools/graphics/graphviz/builder.sh @@ -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 diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix new file mode 100644 index 0000000000000..b1689ec234eda --- /dev/null +++ b/pkgs/tools/graphics/graphviz/default.nix @@ -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; +} |