summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2019-12-06 21:04:37 -0800
committerAnders Kaseorg <andersk@mit.edu>2019-12-06 21:14:26 -0800
commitc55f48477a4c819e02d2909e0f7dbf7218e03613 (patch)
tree1ae8dd9809e78a728d73111dfa434dd140df6986 /pkgs/tools
parent3140fa89c51233397f496f49014f6b23216667c2 (diff)
downloadnixpkgs-c55f48477a4c819e02d2909e0f7dbf7218e03613.tar
nixpkgs-c55f48477a4c819e02d2909e0f7dbf7218e03613.tar.gz
nixpkgs-c55f48477a4c819e02d2909e0f7dbf7218e03613.tar.bz2
nixpkgs-c55f48477a4c819e02d2909e0f7dbf7218e03613.tar.lz
nixpkgs-c55f48477a4c819e02d2909e0f7dbf7218e03613.tar.xz
nixpkgs-c55f48477a4c819e02d2909e0f7dbf7218e03613.tar.zst
nixpkgs-c55f48477a4c819e02d2909e0f7dbf7218e03613.zip
gnuplot_qt: Use qt mkDerivation
Fixes this error:

gnuplot> plot [-5:5] sin(x)
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could
be initialized. Reinstalling the application may fix this problem.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/graphics/gnuplot/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix
index 7e823711e33..9f6393b6372 100644
--- a/pkgs/tools/graphics/gnuplot/default.nix
+++ b/pkgs/tools/graphics/gnuplot/default.nix
@@ -11,14 +11,14 @@
 , fontconfig ? null
 , gnused ? null
 , coreutils ? null
-, withQt ? false, qttools, qtbase, qtsvg
+, withQt ? false, mkDerivation, qttools, qtbase, qtsvg
 }:
 
 assert libX11 != null -> (fontconfig != null && gnused != null && coreutils != null);
 let
   withX = libX11 != null && !aquaterm && !stdenv.isDarwin;
 in
-stdenv.mkDerivation rec {
+(if withQt then mkDerivation else stdenv.mkDerivation) rec {
   name = "gnuplot-5.2.7";
 
   src = fetchurl {