Skip to content

Commit

Permalink
gnuplot_qt: Use qt mkDerivation
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit c55f484)
  • Loading branch information
andersk authored and worldofpeace committed Dec 7, 2019
1 parent 131ff6d commit 41896c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/graphics/gnuplot/default.nix
Expand Up @@ -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 {
Expand Down

0 comments on commit 41896c8

Please sign in to comment.