mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
c7423cd734
Clarify that the monochrome font is not included, per #221181. The new name is also coherent with the name of the font, according to `fontconfig`: Noto Color Emoji.
33 lines
905 B
Nix
33 lines
905 B
Nix
import ./make-test-python.nix ({ lib, ... }:
|
|
{
|
|
name = "fontconfig-default-fonts";
|
|
|
|
meta.maintainers = with lib.maintainers; [
|
|
jtojnar
|
|
];
|
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
|
fonts.enableDefaultPackages = true; # Background fonts
|
|
fonts.packages = with pkgs; [
|
|
noto-fonts-color-emoji
|
|
cantarell-fonts
|
|
twitter-color-emoji
|
|
source-code-pro
|
|
gentium
|
|
];
|
|
fonts.fontconfig.defaultFonts = {
|
|
serif = [ "Gentium Plus" ];
|
|
sansSerif = [ "Cantarell" ];
|
|
monospace = [ "Source Code Pro" ];
|
|
emoji = [ "Twitter Color Emoji" ];
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.succeed("fc-match serif | grep '\"Gentium Plus\"'")
|
|
machine.succeed("fc-match sans-serif | grep '\"Cantarell\"'")
|
|
machine.succeed("fc-match monospace | grep '\"Source Code Pro\"'")
|
|
machine.succeed("fc-match emoji | grep '\"Twitter Color Emoji\"'")
|
|
'';
|
|
})
|