1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/tests/fonts.nix

21 lines
414 B
Nix
Raw Normal View History

2018-09-30 17:42:00 +00:00
{ config, pkgs, ... }:
let
font = pkgs.runCommand "font-0.0.0" {} ''
mkdir -p $out
touch $out/Font.ttf
'';
in
{
fonts.packages = [ font ];
2018-09-30 17:42:00 +00:00
test = ''
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 '/Library/Fonts/Nix Fonts' ${config.out}/activate
2018-09-30 17:42:00 +00:00
'';
}