aa600ed8f7
Changed 'gnuplot' expression to allow for argument overriding instead of relying on getPkgConfig. While I was at it, I also simplified the actual build expression a bit. svn path=/nixpkgs/trunk/; revision=21864
30 lines
641 B
Nix
30 lines
641 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
|
|
, readline
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "gnuplot-4.4.0";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gnuplot/gnuplot-4.4.0.tar.gz";
|
|
sha256 = "0akb2lzxa3b0j4nr6anr0mhsk10b1fcnixk8vk9aa82rl1a2rph0";
|
|
};
|
|
|
|
configureFlags = if (libX11 != null) then ["--with-x"] else ["--without-x"];
|
|
|
|
buildInputs = [
|
|
zlib gd texinfo readline emacs lua texLive libX11 libXt libXpm libXaw
|
|
wxGTK pango cairo pkgconfig
|
|
];
|
|
}
|