treewide: add Apple Color Emoji
This commit is contained in:
parent
587708328d
commit
ea922eb16d
3 changed files with 29 additions and 8 deletions
16
pkgs/apple-emoji-color.nix
Normal file
16
pkgs/apple-emoji-color.nix
Normal 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
|
||||
'';
|
||||
}
|
|
@ -12,4 +12,5 @@
|
|||
})
|
||||
.callPackage
|
||||
./bolt-launcher.nix {};
|
||||
apple-emoji-color = pkgs.callPackage ./apple-emoji-color.nix {};
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue