mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
Merge pull request #5703 from eduarrrd/gnuplot-5
gnuplot: bump to 5.0.0, allow choosing qt version
This commit is contained in:
commit
3d65a59e9f
@ -14,18 +14,18 @@
|
||||
, fontconfig ? null
|
||||
, gnused ? null
|
||||
, coreutils ? null
|
||||
, withQt ? false, qt4 }:
|
||||
, withQt ? false, qt }:
|
||||
|
||||
assert libX11 != null -> (fontconfig != null && gnused != null && coreutils != null);
|
||||
let
|
||||
withX = libX11 != null && !aquaterm && !stdenv.isDarwin;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gnuplot-4.6.6";
|
||||
name = "gnuplot-5.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/gnuplot/${name}.tar.gz";
|
||||
sha256 = "0x022d7psl9g6q389x5rjlfsvfciz88yrgxg4lig4ichs1pmj68z";
|
||||
sha256 = "1bqg6zbsin9w9m53rbf6adzv0j2gs66z2p5pkd060jlipk2lnza1";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withTeXLive texLive
|
||||
++ lib.optional withLua lua
|
||||
++ lib.optionals withX [ libX11 libXpm libXt libXaw ]
|
||||
++ lib.optional withQt [ qt4 ]
|
||||
++ lib.optional withQt [ qt ]
|
||||
# compiling with wxGTK causes a malloc (double free) error on darwin
|
||||
++ lib.optional (withWxGTK && !stdenv.isDarwin) wxGTK;
|
||||
|
||||
|
@ -1347,7 +1347,7 @@ let
|
||||
|
||||
gnupg = gnupg20;
|
||||
|
||||
gnuplot = callPackage ../tools/graphics/gnuplot { };
|
||||
gnuplot = callPackage ../tools/graphics/gnuplot { qt = qt5; };
|
||||
|
||||
gnuplot_qt = gnuplot.override { withQt = true; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user