nixpkgs/pkgs/tools/graphics/gnuplot/default.nix
Peter Simons f96b77a4ce gnuplot: updated to version 4.4.0
svn path=/nixpkgs/trunk/; revision=21648
2010-05-07 14:01:57 +00:00

36 lines
871 B
Nix

{ stdenv, fetchurl, zlib, gd, texinfo
, texLive ? null
, lua ? null
, emacs ? null
, libX11 ? null
, libXt ? null
, libXpm ? null
, libXaw ? null
, wxGTK ? null
, pango ? null
, cairo ? null
, pkgconfig ? null
, x11Support ? false
, readline
}:
assert x11Support -> ((libX11 != null) &&
(libXt != null) && (libXpm != null) &&
(libXaw != null));
assert (wxGTK != null) -> x11Support;
stdenv.mkDerivation {
name = "gnuplot-4.4.0";
src = fetchurl {
url = "mirror://sourceforge/gnuplot/gnuplot-4.4.0.tar.gz";
sha256 = "0akb2lzxa3b0j4nr6anr0mhsk10b1fcnixk8vk9aa82rl1a2rph0";
};
configureFlags = if x11Support then ["--with-x"] else ["--without-x"];
buildInputs = [zlib gd texinfo readline emacs lua texLive] ++
(if x11Support then [libX11 libXt libXpm libXaw] else []) ++
(if wxGTK != null then [wxGTK pango cairo pkgconfig] else []);
}