Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.42.2"; 18 19 src = fetchurl { 20 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 21 sha256 = "sha256-GyTJJiSuEnXMtXdYF10198Oa0zQtjAtLpg8NmEnS0Io="; 22 }; 23 24 patches = [ 25 # Fixes a missing include leading to build failures while compiling `attrlist.cc` (as outlined by @dslm4515 [1]) 26 # Note that the files in that directory are generated and not tracked in Git [2], which is why we can't simply 27 # try to cherry-pick an upstream patch from future versions. 28 # [1]: https://github.com/dslm4515/BMLFS/issues/16#issuecomment-914624797 29 # [2]: https://github.com/GNOME/pangomm/tree/master/untracked 30 ./2.42.2-add-missing-include-attrlist.cc.patch 31 ]; 32 33 outputs = [ 34 "out" 35 "dev" 36 ]; 37 38 nativeBuildInputs = [ 39 pkg-config 40 meson 41 ninja 42 python3 43 ]; 44 propagatedBuildInputs = [ 45 pango 46 glibmm 47 cairomm 48 ]; 49 50 doCheck = true; 51 52 passthru = { 53 updateScript = gnome.updateScript { 54 packageName = pname; 55 versionPolicy = "odd-unstable"; 56 freeze = true; 57 }; 58 }; 59 60 meta = with lib; { 61 broken = 62 (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin; 63 description = "C++ interface to the Pango text rendering library"; 64 homepage = "https://www.pango.org/"; 65 license = with licenses; [ 66 lgpl2 67 lgpl21 68 ]; 69 maintainers = with maintainers; [ 70 lovek323 71 raskin 72 ]; 73 platforms = platforms.unix; 74 75 longDescription = '' 76 Pango is a library for laying out and rendering of text, with an 77 emphasis on internationalization. Pango can be used anywhere 78 that text layout is needed, though most of the work on Pango so 79 far has been done in the context of the GTK widget toolkit. 80 Pango forms the core of text and font handling for GTK. 81 ''; 82 }; 83}