xorg.libXft: add color emoji rendering support

https://gitlab.freedesktop.org/xorg/lib/libxft/merge_requests/1
This commit is contained in:
worldofpeace 2020-02-03 14:35:41 -05:00 committed by Frederik Rietdijk
parent c55efd568a
commit cf83cfbd4c

View file

@ -182,6 +182,16 @@ self: super:
propagatedBuildInputs = [ self.libXrender freetype fontconfig ];
configureFlags = attrs.configureFlags or []
++ malloc0ReturnsNullCrossFlag;
patches = [
# Adds color emoji rendering support.
# https://gitlab.freedesktop.org/xorg/lib/libxft/merge_requests/1
(fetchpatch {
url = "https://gitlab.freedesktop.org/xorg/lib/libxft/commit/fe41537b5714a2301808eed2d76b2e7631176573.patch";
sha256 = "045lp1q50i2wlwvpsq6ycxdc6p3asm2r3bk2nbad1dwkqw2xf9jc";
})
];
# the include files need ft2build.h, and Requires.private isn't enough for us
postInstall = ''
sed "/^Requires:/s/$/, freetype2/" -i "$dev/lib/pkgconfig/xft.pc"