mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
gnuplot: Allow compiling with libcaca (#137523)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
b040385412
commit
7f22c1851f
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user