at 23.11-beta 1.4 kB view raw
1import ./make-test-python.nix ({ pkgs, lib, ... }: { 2 name = "noto-fonts"; 3 meta.maintainers = with lib.maintainers; [ nickcao midchildan ]; 4 5 nodes.machine = { 6 imports = [ ./common/x11.nix ]; 7 environment.systemPackages = [ pkgs.gedit ]; 8 fonts = { 9 enableDefaultPackages = false; 10 fonts = with pkgs;[ 11 noto-fonts 12 noto-fonts-cjk-sans 13 noto-fonts-cjk-serif 14 noto-fonts-color-emoji 15 ]; 16 fontconfig.defaultFonts = { 17 serif = [ "Noto Serif" "Noto Serif CJK SC" ]; 18 sansSerif = [ "Noto Sans" "Noto Sans CJK SC" ]; 19 monospace = [ "Noto Sans Mono" "Noto Sans Mono CJK SC" ]; 20 emoji = [ "Noto Color Emoji" ]; 21 }; 22 }; 23 }; 24 25 testScript = 26 # extracted from http://www.clagnut.com/blog/2380/ 27 let testText = builtins.toFile "test.txt" '' 28 the quick brown fox jumps over the lazy dog 29 30 Eĥoŝanĝo ĉiuĵaŭde. 31 32 33 34 ''; in 35 '' 36 machine.wait_for_x() 37 machine.succeed("gedit ${testText} >&2 &") 38 machine.wait_for_window(".* - gedit") 39 machine.sleep(10) 40 machine.screenshot("screen") 41 ''; 42})