19 , 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 = "iAD4Etie5hOIGIcDID86eHiWPCL4aVqvH6ChoUKNF64=";
40 glib # for glib-mkenum
51 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
58 propagatedBuildInputs = [
63 ] ++ lib.optionals x11Support [
69 ] ++ lib.optionals (!x11Support) [
70 "-Dxft=disabled" # only works with x11
73 # Fontconfig error: Cannot load default config file
74 FONTCONFIG_FILE = makeFontsConf {
75 fontDirectories = [ freefont_ttf ];
78 # Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
79 # it should be a build-time dep for build
82 substituteInPlace meson.build \
83 --replace "dependency('gi-docgen', ver" "dependency('gi-docgen', native:true, ver"
85 substituteInPlace docs/meson.build \
86 --replace "'gi-docgen', req" "'gi-docgen', native:true, req"
89 doCheck = false; # test-font: FAIL
92 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
93 moveToOutput "share/doc" "$devdoc"
97 updateScript = gnome.updateScript {
99 versionPolicy = "odd-unstable";
100 # 1.90 is alpha for API 2.
106 description = "A library for laying out and rendering of text, with an emphasis on internationalization";
109 Pango is a library for laying out and rendering of text, with an
110 emphasis on internationalization. Pango can be used anywhere
111 that text layout is needed, though most of the work on Pango so
112 far has been done in the context of the GTK widget toolkit.
113 Pango forms the core of text and font handling for GTK.
116 homepage = "https://www.pango.org/";
117 license = licenses.lgpl2Plus;
119 maintainers = with maintainers; [ raskin ] ++ teams.gnome.members;
120 platforms = platforms.linux ++ platforms.darwin;