mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00: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:
parent
87b9d090ad
commit
0cf7d41389
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue