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
|
.callPackage
|
||||||
./bolt-launcher.nix {};
|
./bolt-launcher.nix {};
|
||||||
|
apple-emoji-color = pkgs.callPackage ./apple-emoji-color.nix {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue