From cf83cfbd4c588076a82d8dfedddb2d9493568f45 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Mon, 3 Feb 2020 14:35:41 -0500 Subject: [PATCH] xorg.libXft: add color emoji rendering support https://gitlab.freedesktop.org/xorg/lib/libxft/merge_requests/1 --- pkgs/servers/x11/xorg/overrides.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 7a9ffcfc6469..a19ae62b1f49 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -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"