From 60d3dbf50633457946b5a256732e2e4b7501f430 Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Sat, 4 Apr 2026 17:28:01 +0200 Subject: [PATCH] signal-desktop: add comment explaining why Apple emojis are removed The comment is copied nearly verbatim from the dropped signal-desktop-bin recipe. Signed-off-by: Marcin Serwin --- pkgs/by-name/si/signal-desktop/package.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/by-name/si/signal-desktop/package.nix b/pkgs/by-name/si/signal-desktop/package.nix index 15d59b77e2ef..4f0f373a598d 100644 --- a/pkgs/by-name/si/signal-desktop/package.nix +++ b/pkgs/by-name/si/signal-desktop/package.nix @@ -124,6 +124,18 @@ stdenv.mkDerivation (finalAttrs: { ./force-90-days-expiration.patch ] ++ lib.optional (!withAppleEmojis) ( + # Signal ships the Apple emoji set without a licence via an npm + # package and upstream does not seem terribly interested in fixing + # this; see: + # + # * + # * + # + # We work around this by replacing it with the Noto Color Emoji + # set, which is available under a FOSS licence and more likely to + # be used on a NixOS machine anyway. The Apple emoji are removed + # before `fetchPnpmDeps` to ensure that the build doesn’t cache the + # unlicensed emoji files. replaceVars ./replace-apple-emoji-with-noto-emoji.patch { noto-emoji-pngs = "${noto-fonts-color-emoji-png}/share/noto-fonts-color-emoji-png"; }