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>
This commit is contained in:
parent
3140fa89c5
commit
c55f48477a
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue