summaryrefslogtreecommitdiff
path: root/tests/fonts.nix
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-16 22:22:34 +0100
committerGitHub <noreply@github.com>2025-01-16 22:22:34 +0100
commit8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch)
treec5059edcbebd9644290cad7c653c49a36d593021 /tests/fonts.nix
parent6bd39d420578aacf7c0bab7de3e7027b952115ae (diff)
parentbd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff)
Merge branch 'LnL7:master' into masterHEADmaster
Diffstat (limited to 'tests/fonts.nix')
-rw-r--r--tests/fonts.nix15
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
'';
}