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

fix(modules/fonts): ignore repeated fonts

Without this, attempts to build the fonts dir with repeated font
packages in `fonts.fonts` will yield:

```
ln: failed to create symbolic link '/nix/store/6im9rm87nxc82nqbv350hfp2w7ja1z47-fonts/Library/Fonts/IBMPlexSansThai-Thin.otf': File exists
```
This commit is contained in:
Bernardo Meurer 2023-03-28 14:41:04 -03:00
parent 87b9d090ad
commit 0cf7d41389
No known key found for this signature in database

View File

@ -38,7 +38,7 @@ in
mkdir -p $out/Library/Fonts
for path in $paths; do
find -L $path/share/fonts -type f -print0 | while IFS= read -rd "" f; do
ln -s "$f" $out/Library/Fonts
ln -sf "$f" $out/Library/Fonts
done
done
'';