gnuplot: Allow compiling with libcaca (#137523)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Michal Sojka 2021-09-12 16:00:55 +02:00 committed by GitHub
parent b040385412
commit 7f22c1851f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
, cairo, gd, libcerf, pango, readline, zlib
, withTeXLive ? false, texlive
, withLua ? false, lua
, withCaca ? false, libcaca
, libX11 ? null
, libXt ? null
, libXpm ? null
@ -33,6 +34,7 @@ in
[ cairo gd libcerf pango readline zlib ]
++ lib.optional withTeXLive (texlive.combine { inherit (texlive) scheme-small; })
++ lib.optional withLua lua
++ lib.optional withCaca libcaca
++ lib.optionals withX [ libX11 libXpm libXt libXaw ]
++ lib.optionals withQt [ qtbase qtsvg ]
++ lib.optional withWxGTK wxGTK;
@ -46,7 +48,7 @@ in
(if withX then "--with-x" else "--without-x")
(if withQt then "--with-qt=qt5" else "--without-qt")
(if aquaterm then "--with-aquaterm" else "--without-aquaterm")
];
] ++ lib.optional withCaca "--with-caca";
CXXFLAGS = lib.optionalString (stdenv.isDarwin && withQt) "-std=c++11";