From c55f48477a4c819e02d2909e0f7dbf7218e03613 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 6 Dec 2019 21:04:37 -0800 Subject: [PATCH] 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 --- pkgs/tools/graphics/gnuplot/default.nix | 4 ++-- 1 file 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 {