10 , gobject-introspection
20 , x11Support? !stdenv.isDarwin, libXft
23 stdenv.mkDerivation rec {
27 outputs = [ "bin" "out" "dev" "devdoc" ];
30 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
31 sha256 = "0ijbkcs6217ygzphlpi0vajxkccifdbsl0jdjpy8wz11h9f19sin";
35 # Install developer documentation.
37 url = "https://gitlab.gnome.org/GNOME/pango/commit/a2f35860115e8cd44f07d5158e2df059e8163a08.patch";
38 sha256 = "hN7O4DBk4A+TmBl6DGx6RHni5qRBg6akdjv9o3iWKDQ=";
44 glib # for glib-mkenum
53 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
60 propagatedBuildInputs = [
65 ] ++ lib.optionals x11Support [
71 ] ++ lib.optionals (!x11Support) [
72 "-Dxft=disabled" # only works with x11
75 # Fontconfig error: Cannot load default config file
76 FONTCONFIG_FILE = makeFontsConf {
77 fontDirectories = [ freefont_ttf ];
80 doCheck = false; # test-font: FAIL
83 # So that devhelp can find this.
84 # https://gitlab.gnome.org/GNOME/pango/merge_requests/293/diffs#note_1058448
85 mkdir -p "$devdoc/share/devhelp"
86 mv "$out/share/doc/pango/reference" "$devdoc/share/devhelp/books"
87 rmdir -p --ignore-fail-on-non-empty "$out/share/doc/pango"
91 updateScript = gnome3.updateScript {
97 description = "A library for laying out and rendering of text, with an emphasis on internationalization";
100 Pango is a library for laying out and rendering of text, with an
101 emphasis on internationalization. Pango can be used anywhere
102 that text layout is needed, though most of the work on Pango so
103 far has been done in the context of the GTK widget toolkit.
104 Pango forms the core of text and font handling for GTK.
107 homepage = "https://www.pango.org/";
108 license = licenses.lgpl2Plus;
110 maintainers = with maintainers; [ raskin ] ++ teams.gnome.members;
111 platforms = platforms.linux ++ platforms.darwin;