From 5f05f896c77aedee61f22e400adbc0250fc83c7f Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 30 Mar 2023 13:56:50 -0700 Subject: [PATCH] twemoji: replace with twitter-color-emoji --- hosts/desktop.nix | 2 +- modules/twemoji/default.nix | 37 ------------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 modules/twemoji/default.nix diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 41a3b7e..9c93dce 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -58,7 +58,7 @@ in mplus-outline-fonts.osdnRelease noto-fonts (nerdfonts.override { fonts = [ "FiraCode" ]; }) # required for icons - (pkgs.callPackage ../modules/twemoji {}) + twitter-color-emoji ]; }; } diff --git a/modules/twemoji/default.nix b/modules/twemoji/default.nix deleted file mode 100644 index c49aa97..0000000 --- a/modules/twemoji/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ pkgs, lib, stdenv }: - -let - _fedrel = "2.fc37"; -in -stdenv.mkDerivation rec { - pname = "ttf-twemoji"; - version = "14.0.2"; - - src = pkgs.fetchurl { - url = "https://kojipkgs.fedoraproject.org/packages/twitter-twemoji-fonts/${version}/${_fedrel}/noarch/twitter-twemoji-fonts-${version}-${_fedrel}.noarch.rpm"; - hash = "sha256-GK7JZzHs/9gSViSTPPv3V/LFfdGzj4F50VO5HSqs0VE="; - }; - - nativeBuildInputs = with pkgs; [ - rpm - cpio - ]; - - unpackPhase = '' - rpm2cpio $src | cpio -i --make-directories - ''; - - dontBuild = true; - - installPhase = '' - install -Dm755 usr/share/fonts/twemoji/Twemoji.ttf $out/share/fonts/truetype/Twemoji.ttf - ''; - - meta = with lib; { - description = "Twitter Color Emoji for everyone."; - homepage = "https://github.com/twitter/twemoji"; - license = with licenses; [ cc-by-40 mit ]; - maintainers = with maintainers; [ elnudev ]; - platforms = platforms.all; - }; -}