Updated Gnuplot to version 4.2.5.
* Merged 'gnuplot' and 'gnuplotX' attributes into one that uses (getPkgConfig "gnuplot" "x11" false) to determine whether X11 support is desired or not. * Added Emacs as a build-time dependency to ensure that Gnuplot's lisp code is installed, too. * Added optional support for the wxt terminal by means of (getPkgConfig "gnuplot" "wxGtk" false). * Removed the '-nix' suffix to the package name. The Gnuplot license requires a vendor-specific version suffix only in case of modified binary distributions. That is not the case here. svn path=/nixpkgs/trunk/; revision=16992
This commit is contained in:
parent
1511a6f28c
commit
c5179a098c
@ -1,30 +1,33 @@
|
|||||||
{ stdenv, fetchurl, zlib, gd, texinfo
|
{ stdenv, fetchurl, zlib, gd, texinfo
|
||||||
|
, emacs ? null
|
||||||
, libX11 ? null
|
, libX11 ? null
|
||||||
, libXt ? null
|
, libXt ? null
|
||||||
, libXpm ? null
|
, libXpm ? null
|
||||||
, libXaw ? null
|
, libXaw ? null
|
||||||
|
, wxGTK ? null
|
||||||
|
, pango ? null
|
||||||
|
, cairo ? null
|
||||||
|
, pkgconfig ? null
|
||||||
, x11Support ? false
|
, x11Support ? false
|
||||||
, readline
|
, readline
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert x11Support -> ((libX11 != null) &&
|
assert x11Support -> ((libX11 != null) &&
|
||||||
(libXt != null) && (libXpm != null) &&
|
(libXt != null) && (libXpm != null) &&
|
||||||
(libXaw != null));
|
(libXaw != null));
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
assert (wxGTK != null) -> x11Support;
|
||||||
# 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.2.2-nix";
|
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "gnuplot-4.2.5";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/gnuplot/gnuplot-4.2.2.tar.gz;
|
url = "mirror://sourceforge/gnuplot/gnuplot-4.2.5.tar.gz";
|
||||||
sha256 = "14ca8wwdb4hdsgs51fqlrkcny3d4rm1vs54sfg5d0hr7iw2qlvvm";
|
sha256 = "1y0imxy9bflzny98n1wvv19bqxfsvsxbl8z12k46qnna0vg7wiw9";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = if x11Support then ["--with-x"] else ["--without-x"];
|
configureFlags = if x11Support then ["--with-x"] else ["--without-x"];
|
||||||
|
|
||||||
buildInputs = [zlib gd texinfo readline] ++
|
buildInputs = [zlib gd texinfo readline emacs] ++
|
||||||
(if x11Support then [libX11 libXt libXpm libXaw] else []);
|
(if x11Support then [libX11 libXt libXpm libXaw] else []) ++
|
||||||
|
(if wxGTK != null then [wxGTK pango cairo pkgconfig] else []);
|
||||||
}
|
}
|
||||||
|
@ -789,13 +789,12 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
gnuplot = import ../tools/graphics/gnuplot {
|
gnuplot = import ../tools/graphics/gnuplot {
|
||||||
inherit fetchurl stdenv zlib gd texinfo readline;
|
inherit fetchurl stdenv zlib gd texinfo readline emacs;
|
||||||
};
|
|
||||||
|
|
||||||
gnuplotX = import ../tools/graphics/gnuplot {
|
|
||||||
inherit fetchurl stdenv zlib gd texinfo readline;
|
|
||||||
inherit (xlibs) libX11 libXt libXaw libXpm;
|
inherit (xlibs) libX11 libXt libXaw libXpm;
|
||||||
x11Support = true;
|
x11Support = getPkgConfig "gnuplot" "x11" false;
|
||||||
|
wxGTK = if getPkgConfig "gnuplot" "wxGtk" false then wxGTK28 else null;
|
||||||
|
inherit (gtkLibs) pango;
|
||||||
|
inherit cairo pkgconfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
gnused = useFromStdenv "gnused"
|
gnused = useFromStdenv "gnused"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user