treewide: add Apple Color Emoji

This commit is contained in:
Anthony Rodriguez 2024-11-14 22:13:04 +01:00
parent 5b99da7eff
commit 040e849a9f
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 29 additions and 8 deletions

View file

@ -0,0 +1,16 @@
{pkgs, ...}: let
version = "v17.4";
in
pkgs.stdenv.mkDerivation {
inherit version;
name = "apple-color-emoji";
src = pkgs.fetchurl {
url = "https://github.com/samuelngs/apple-emoji-linux/releases/download/${version}/AppleColorEmoji.ttf";
sha256 = "sha256-SG3JQLybhY/fMX+XqmB/BKhQSBB0N1VRqa+H6laVUPE=";
};
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/share/fonts/truetype/apple-color-emoji
cp $src $out/share/fonts/truetype/apple-color-emoji/AppleColorEmoji.ttf
'';
}

View file

@ -12,4 +12,5 @@
}) })
.callPackage .callPackage
./bolt-launcher.nix {}; ./bolt-launcher.nix {};
apple-emoji-color = pkgs.callPackage ./apple-emoji-color.nix {};
} }

View file

@ -1,15 +1,19 @@
{pkgs, ...}: { {
inputs,
pkgs,
...
}: {
fonts = { fonts = {
fontDir = { fontDir = {
enable = true; enable = true;
decompressFonts = true; decompressFonts = true;
}; };
packages = with pkgs; [ packages = [
noto-fonts pkgs.noto-fonts
noto-fonts-cjk-sans pkgs.noto-fonts-cjk-sans
noto-fonts-emoji pkgs.noto-fonts-extra
noto-fonts-extra pkgs.intel-one-mono
intel-one-mono inputs.self.packages.${pkgs.system}.apple-emoji-color
]; ];
enableDefaultPackages = false; enableDefaultPackages = false;
@ -19,7 +23,7 @@
serif = ["Noto Serif"]; serif = ["Noto Serif"];
sansSerif = ["Inter Medium"]; sansSerif = ["Inter Medium"];
monospace = ["Intel One Mono"]; monospace = ["Intel One Mono"];
emoji = ["Noto Color Emoji"]; emoji = ["Apple Color Emoji"];
}; };
}; };
}; };