at 23.11-pre 893 B view raw
1import ./make-test-python.nix ({ lib, ... }: 2{ 3 name = "fontconfig-default-fonts"; 4 5 meta.maintainers = with lib.maintainers; [ 6 jtojnar 7 ]; 8 9 nodes.machine = { config, pkgs, ... }: { 10 fonts.enableDefaultFonts = true; # Background fonts 11 fonts.fonts = with pkgs; [ 12 noto-fonts-emoji 13 cantarell-fonts 14 twitter-color-emoji 15 source-code-pro 16 gentium 17 ]; 18 fonts.fontconfig.defaultFonts = { 19 serif = [ "Gentium Plus" ]; 20 sansSerif = [ "Cantarell" ]; 21 monospace = [ "Source Code Pro" ]; 22 emoji = [ "Twitter Color Emoji" ]; 23 }; 24 }; 25 26 testScript = '' 27 machine.succeed("fc-match serif | grep '\"Gentium Plus\"'") 28 machine.succeed("fc-match sans-serif | grep '\"Cantarell\"'") 29 machine.succeed("fc-match monospace | grep '\"Source Code Pro\"'") 30 machine.succeed("fc-match emoji | grep '\"Twitter Color Emoji\"'") 31 ''; 32})