gd: disable fontconfig when built without Xorg

This commit is contained in:
Sandro Jäckel 2023-05-19 23:07:55 +02:00
parent b608fc233c
commit ee736a3dc9
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -44,8 +44,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake pkg-config ];
buildInputs = [ zlib fontconfig freetype libpng libjpeg libwebp libtiff libavif ]
++ lib.optional withXorg libXpm;
buildInputs = [ zlib freetype libpng libjpeg libwebp libtiff libavif ]
++ lib.optionals withXorg [ fontconfig libXpm ];
outputs = [ "bin" "dev" "out" ];