diff --git a/pkgs/apple-emoji-color.nix b/pkgs/apple-emoji-color.nix new file mode 100644 index 0000000..f7fa735 --- /dev/null +++ b/pkgs/apple-emoji-color.nix @@ -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 + ''; + } diff --git a/pkgs/default.nix b/pkgs/default.nix index 0cf4299..6ad84c8 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -12,4 +12,5 @@ }) .callPackage ./bolt-launcher.nix {}; + apple-emoji-color = pkgs.callPackage ./apple-emoji-color.nix {}; } diff --git a/system/programs/fonts.nix b/system/programs/fonts.nix index 35941ba..bee5d9a 100644 --- a/system/programs/fonts.nix +++ b/system/programs/fonts.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"]; }; }; };