1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 meson,
7 ninja,
8 python3,
9 pango,
10 glibmm,
11 cairomm,
12 gnome,
13}:
14
15stdenv.mkDerivation rec {
16 pname = "pangomm";
17 version = "2.46.4";
18
19 src = fetchurl {
20 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
21 sha256 = "sha256-uSAWZhUmQk3kuTd/FRL1l4H0H7FsnAJn1hM7oc1o2yI=";
22 };
23
24 outputs = [
25 "out"
26 "dev"
27 ];
28
29 nativeBuildInputs = [
30 pkg-config
31 meson
32 ninja
33 python3
34 ];
35 propagatedBuildInputs = [
36 pango
37 glibmm
38 cairomm
39 ];
40
41 doCheck = true;
42
43 passthru = {
44 updateScript = gnome.updateScript {
45 packageName = pname;
46 versionPolicy = "odd-unstable";
47 freeze = true;
48 };
49 };
50
51 meta = with lib; {
52 description = "C++ interface to the Pango text rendering library";
53 homepage = "https://www.pango.org/";
54 license = with licenses; [
55 lgpl2
56 lgpl21
57 ];
58 maintainers = with maintainers; [
59 lovek323
60 raskin
61 ];
62 platforms = platforms.unix;
63
64 longDescription = ''
65 Pango is a library for laying out and rendering of text, with an
66 emphasis on internationalization. Pango can be used anywhere
67 that text layout is needed, though most of the work on Pango so
68 far has been done in the context of the GTK widget toolkit.
69 Pango forms the core of text and font handling for GTK.
70 '';
71 };
72}