about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-07-26 02:14:56 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-07-26 02:14:56 +0200
commit598d0460cd7635fdfe0a23fce6365b7ddfc72e43 (patch)
tree3abe6532e5c3ecd660ecd571dd5bca24d2b62e25 /pkgs
parent9539195227dac9087c808ea6e0c3a54ace1dc25a (diff)
parentac01b79c73f6430f0601fd6665bc46a0408f1009 (diff)
downloadnixlib-598d0460cd7635fdfe0a23fce6365b7ddfc72e43.tar
nixlib-598d0460cd7635fdfe0a23fce6365b7ddfc72e43.tar.gz
nixlib-598d0460cd7635fdfe0a23fce6365b7ddfc72e43.tar.bz2
nixlib-598d0460cd7635fdfe0a23fce6365b7ddfc72e43.tar.lz
nixlib-598d0460cd7635fdfe0a23fce6365b7ddfc72e43.tar.xz
nixlib-598d0460cd7635fdfe0a23fce6365b7ddfc72e43.tar.zst
nixlib-598d0460cd7635fdfe0a23fce6365b7ddfc72e43.zip
Merge pull request #3355 from ttuegel/gnuplot
Update gnuplot and add optional Qt dependency
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/graphics/gnuplot/default.nix10
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix
index e0f9ce2a2bf7..58e023a6aaa7 100644
--- a/pkgs/tools/graphics/gnuplot/default.nix
+++ b/pkgs/tools/graphics/gnuplot/default.nix
@@ -13,29 +13,33 @@
 , pkgconfig ? null
 , fontconfig ? null
 , gnused ? null
-, coreutils ? null }:
+, coreutils ? null
+, qt ? null }:
 
 assert libX11 != null -> (fontconfig != null && gnused != null && coreutils != null);
 let
   withX = libX11 != null && !aquaterm;
+  withQt = qt != null;
 in
 stdenv.mkDerivation rec {
-  name = "gnuplot-4.6.3";
+  name = "gnuplot-4.6.5";
 
   src = fetchurl {
     url = "mirror://sourceforge/gnuplot/${name}.tar.gz";
-    sha256 = "1xd7gqdhlk7k1p9yyqf9vkk811nadc7m4si0q3nb6cpv4pxglpyz";
+    sha256 = "0bcsa5b33msddjs6mj0rhi81cs19h9p3ykixkkl70ifhqwqg0l75";
   };
 
   buildInputs =
     [ zlib gd texinfo readline emacs lua texLive
       pango cairo pkgconfig makeWrapper ]
     ++ stdenv.lib.optionals withX              [ libX11 libXpm libXt libXaw ]
+    ++ stdenv.lib.optional withQt [ qt ]
     # compiling with wxGTK causes a malloc (double free) error on darwin
     ++ stdenv.lib.optional (!stdenv.isDarwin) wxGTK;
 
   configureFlags =
     (if withX then ["--with-x"] else ["--without-x"])
+    ++ (if withQt then ["--enable-qt"] else ["--disable-qt"])
     ++ (if aquaterm then ["--with-aquaterm"] else ["--without-aquaterm"])
     ;
 
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9159f49c1da6..1129bf644efc 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1158,6 +1158,8 @@ let
       else stdenv;
   };
 
+  gnuplot_qt = gnuplot.override { qt = qt4; };
+
   # must have AquaTerm installed separately
   gnuplot_aquaterm = gnuplot.override { aquaterm = true; };