diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-16 22:22:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-16 22:22:34 +0100 |
| commit | 8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch) | |
| tree | c5059edcbebd9644290cad7c653c49a36d593021 /tests/fonts.nix | |
| parent | 6bd39d420578aacf7c0bab7de3e7027b952115ae (diff) | |
| parent | bd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff) | |
Diffstat (limited to 'tests/fonts.nix')
| -rw-r--r-- | tests/fonts.nix | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/fonts.nix b/tests/fonts.nix index acd1b13..d60979c 100644 --- a/tests/fonts.nix +++ b/tests/fonts.nix @@ -2,22 +2,19 @@ let font = pkgs.runCommand "font-0.0.0" {} '' - mkdir -p $out/share/fonts - touch $out/share/fonts/Font.ttf + mkdir -p $out + touch $out/Font.ttf ''; in { - fonts.fontDir.enable = true; - fonts.fonts = [ font ]; + fonts.packages = [ font ]; test = '' - echo "checking fonts in /Library/Fonts" >&2 - test -e ${config.out}/Library/Fonts/Font.ttf + echo "checking fonts in /Library/Fonts/Nix Fonts" >&2 + test -e "${config.out}/Library/Fonts/Nix Fonts"/*/Font.ttf echo "checking activation of fonts in /activate" >&2 - grep "fontrestore default -n 2>&1" ${config.out}/activate - grep 'ln -fn ".*" /Library/Fonts' ${config.out}/activate || grep 'rsync -az --inplace ".*" /Library/Fonts' ${config.out}/activate - grep 'rm "/Library/Fonts/.*"' ${config.out}/activate + grep '/Library/Fonts/Nix Fonts' ${config.out}/activate ''; } |
