mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
gnuplot: bump to 5.0.0, allow choosing qt version
default to qt5
This commit is contained in:
parent
173f41cf0b
commit
5915d9c417
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -1338,7 +1338,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 a new issue