1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
3 meta.maintainers = with lib.maintainers; [ nickcao midchildan ];
6 imports = [ ./common/x11.nix ];
7 environment.systemPackages = [ pkgs.gedit ];
9 enableDefaultPackages = false;
14 noto-fonts-color-emoji
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" ];
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
31 いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす
37 machine.succeed("gedit ${testText} >&2 &")
38 machine.wait_for_window(".* - gedit")
40 machine.screenshot("screen")