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

add support for dfont to the fonts module

This commit is contained in:
Benjamin Lee 2023-09-08 15:43:25 -07:00
parent 511177ffe8
commit ba92c4d307
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4

View file

@ -41,7 +41,7 @@ in
{ preferLocalBuild = true; }
''
mkdir -p $out/Library/Fonts
font_regexp='.*\.\(ttf\|ttc\|otf\)'
font_regexp='.*\.\(ttf\|ttc\|otf\|dfont\)'
find -L ${toString cfg.fonts} -regex "$font_regexp" -type f -print0 | while IFS= read -rd "" f; do
ln -sf "$f" $out/Library/Fonts
done