1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00
nix-darwin/tests/fonts.nix

18 lines
420 B
Nix
Raw Normal View History

2018-09-30 20:42:00 +03:00
{ config, pkgs, ... }:
let
fonts = pkgs.runCommand "fonts-0.0.0" {} "mkdir -p $out";
in {
fonts = {
enableFontDir = true;
fonts = [ pkgs.dejavu_fonts ];
};
2018-09-30 20:42:00 +03:00
test = ''
echo checking installed fonts >&2
grep -o "fontrestore default -n" ${config.out}/activate
grep -o "ln -fn '/run/current-system/sw/share/fonts/DejaVuSans.ttf' '/Library/Fonts/DejaVuSans.ttf'" ${config.out}/activate
2018-09-30 20:42:00 +03:00
'';
}