@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, freetype, harfbuzz, qtbase }:
1+{ stdenv, lib, fetchurl, pkgconfig, freetype, harfbuzz, libiconv, qtbase, enableGUI ? true }:
22
33stdenv.mkDerivation rec {
44 version = "1.7";
@@ -15,7 +15,9 @@ stdenv.mkDerivation rec {
1515
1616 nativeBuildInputs = [ pkgconfig ];
1717
18− buildInputs = [ freetype harfbuzz qtbase ];
18+ buildInputs = [ freetype harfbuzz libiconv ] ++ lib.optional enableGUI qtbase;
19+
20+ configureFlags = lib.optional (!enableGUI) "--with-qt=no";
1921
2022 enableParallelBuilding = true;
2123