* Added Graphviz.
svn path=/nixpkgs/trunk/; revision=580
This commit is contained in:
commit
716904fe0c
@ -93,6 +93,15 @@
|
||||
stdenv = stdenv;
|
||||
};
|
||||
|
||||
graphviz = (import ../tools/graphics/graphviz) {
|
||||
fetchurl = fetchurl;
|
||||
stdenv = stdenv;
|
||||
x11 = xfree86;
|
||||
libpng = libpng;
|
||||
libjpeg = libjpeg;
|
||||
expat = expat;
|
||||
};
|
||||
|
||||
|
||||
### SHELLS
|
||||
|
||||
|
10
pkgs/tools/graphics/graphviz/builder.sh
Executable file
10
pkgs/tools/graphics/graphviz/builder.sh
Executable 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
|
21
pkgs/tools/graphics/graphviz/default.nix
Normal file
21
pkgs/tools/graphics/graphviz/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user