16 stdenv.mkDerivation rec {
21 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
22 sha256 = "sha256-GyTJJiSuEnXMtXdYF10198Oa0zQtjAtLpg8NmEnS0Io=";
26 # Fixes a missing include leading to build failures while compiling `attrlist.cc` (as outlined by @dslm4515 [1])
27 # Note that the files in that directory are generated and not tracked in Git [2], which is why we can't simply
28 # try to cherry-pick an upstream patch from future versions.
29 # [1]: https://github.com/dslm4515/BMLFS/issues/16#issuecomment-914624797
30 # [2]: https://github.com/GNOME/pangomm/tree/master/untracked
31 ./2.42.2-add-missing-include-attrlist.cc.patch
46 ++ lib.optionals stdenv.hostPlatform.isDarwin [
49 propagatedBuildInputs = [
58 updateScript = gnome.updateScript {
60 versionPolicy = "odd-unstable";
67 (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
68 description = "C++ interface to the Pango text rendering library";
69 homepage = "https://www.pango.org/";
70 license = with licenses; [
74 maintainers = with maintainers; [
78 platforms = platforms.unix;
81 Pango is a library for laying out and rendering of text, with an
82 emphasis on internationalization. Pango can be used anywhere
83 that text layout is needed, though most of the work on Pango so
84 far has been done in the context of the GTK widget toolkit.
85 Pango forms the core of text and font handling for GTK.