2007-08-04 17:11:48 +02:00
|
|
|
{stdenv, fetchurl, zlib, libpng, texinfo,
|
|
|
|
libX11 ? null,
|
|
|
|
libXt ? null,
|
|
|
|
libXpm ? null,
|
|
|
|
libXaw ? null,
|
|
|
|
x11Support ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert x11Support -> ((libX11 != null) &&
|
|
|
|
(libXt != null) && (libXpm != null) &&
|
|
|
|
(libXaw != null));
|
2005-05-06 10:54:01 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
# Gnuplot (which isn't open source) has a license that requires that
|
|
|
|
# we "add special version identification to distinguish your version
|
|
|
|
# in addition to the base release version number". Hence the "nix"
|
|
|
|
# suffix.
|
|
|
|
name = "gnuplot-4.0-nix";
|
|
|
|
|
|
|
|
# builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 15:01:33 +02:00
|
|
|
url = mirror://sourceforge/gnuplot/gnuplot-4.0.0.tar.gz;
|
2005-05-06 10:54:01 +02:00
|
|
|
md5 = "66258443d9f93cc4f46b147dac33e63a";
|
|
|
|
};
|
|
|
|
|
2007-08-04 17:11:48 +02:00
|
|
|
configureFlags = if x11Support then ["--with-x"] else ["--without-x"];
|
2005-05-06 10:54:01 +02:00
|
|
|
|
2007-08-04 17:11:48 +02:00
|
|
|
buildInputs = [zlib libpng texinfo] ++
|
|
|
|
(if x11Support then [libX11 libXt libXpm libXaw] else []);
|
2005-05-06 10:54:01 +02:00
|
|
|
}
|