pango: make x11 optional, disabled on darwin

This commit is contained in:
Jorge Acereda 2019-03-15 10:10:29 +01:00 committed by Frederik Rietdijk
parent b249f2c2d9
commit bd878ef083

View File

@ -1,7 +1,8 @@
{ stdenv, fetchurl, pkgconfig, libXft, cairo, harfbuzz
{ stdenv, fetchurl, pkgconfig, cairo, harfbuzz
, libintl, gobject-introspection, darwin, fribidi, gnome3
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, makeFontsConf, freefont_ttf
, meson, ninja, glib
, x11Support? !stdenv.isDarwin, libXft
}:
with stdenv.lib;
@ -32,7 +33,8 @@ in stdenv.mkDerivation rec {
CoreGraphics
CoreText
]);
propagatedBuildInputs = [ cairo glib libXft libintl ];
propagatedBuildInputs = [ cairo glib libintl ] ++
optional x11Support libXft;
patches = [
(fetchurl {