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
./bolt-launcher.nix {};
apple-emoji-color = pkgs.callPackage ./apple-emoji-color.nix {};
}

View file

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