summary refs log tree commit diff
path: root/pkgs/tools/graphics/gnuplot
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2014-07-23 18:01:31 -0500
committerThomas Tuegel <ttuegel@gmail.com>2014-07-23 18:01:31 -0500
commitac01b79c73f6430f0601fd6665bc46a0408f1009 (patch)
tree74ce3d7f7d438e1d5f01c9decc74418d50553ef5 /pkgs/tools/graphics/gnuplot
parent760cad296ddb3c9288bb1d823b569c6821ad0a2d (diff)
downloadnixpkgs-ac01b79c73f6430f0601fd6665bc46a0408f1009.tar
nixpkgs-ac01b79c73f6430f0601fd6665bc46a0408f1009.tar.gz
nixpkgs-ac01b79c73f6430f0601fd6665bc46a0408f1009.tar.bz2
nixpkgs-ac01b79c73f6430f0601fd6665bc46a0408f1009.tar.lz
nixpkgs-ac01b79c73f6430f0601fd6665bc46a0408f1009.tar.xz
nixpkgs-ac01b79c73f6430f0601fd6665bc46a0408f1009.tar.zst
nixpkgs-ac01b79c73f6430f0601fd6665bc46a0408f1009.zip
gnuplot: add optional Qt terminal
Diffstat (limited to 'pkgs/tools/graphics/gnuplot')
-rw-r--r--pkgs/tools/graphics/gnuplot/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix
index 3eb253017ad..58e023a6aaa 100644
--- a/pkgs/tools/graphics/gnuplot/default.nix
+++ b/pkgs/tools/graphics/gnuplot/default.nix
@@ -13,11 +13,13 @@
 , 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.5";
@@ -31,11 +33,13 @@ stdenv.mkDerivation rec {
     [ 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"])
     ;