mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Added X11 option for gnuplot.
svn path=/nixpkgs/trunk/; revision=9046
This commit is contained in:
parent
5708413b42
commit
99d499f0c8
@ -1,4 +1,14 @@
|
||||
{stdenv, fetchurl, zlib, libpng, texinfo}:
|
||||
{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));
|
||||
|
||||
stdenv.mkDerivation {
|
||||
# Gnuplot (which isn't open source) has a license that requires that
|
||||
@ -13,7 +23,8 @@ stdenv.mkDerivation {
|
||||
md5 = "66258443d9f93cc4f46b147dac33e63a";
|
||||
};
|
||||
|
||||
configureFlags = ["--without-x"];
|
||||
configureFlags = if x11Support then ["--with-x"] else ["--without-x"];
|
||||
|
||||
buildInputs = [zlib libpng texinfo];
|
||||
buildInputs = [zlib libpng texinfo] ++
|
||||
(if x11Support then [libX11 libXt libXpm libXaw] else []);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user