Bernardo Meurer
0cf7d41389
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
```
2023-03-28 14:41:20 -03:00
Pavel Shirshov
f34b284d3f
fixes #559 , #485 : workaround for broken fontrestore on Ventura
2022-10-25 22:01:55 +01:00
James Walker
a2a9f30fee
rename runCommandNoCC
2022-09-25 14:12:08 -04:00
Chris Montgomery
51e8b0b353
fonts: replace remaining reference to enableFontDir
...
see https://github.com/LnL7/nix-darwin/pull/456#issuecomment-1105472886
props to @jared-w for spotting my mistake
2022-04-24 13:36:19 -04:00
Chris Montgomery
b67c312295
fonts: rename fonts.enableFontDir
in line with NixOS
...
since 21.05 beta:
e22337c870/nixos/modules/config/fonts/fontdir.nix (L64)
c99bd9bedf
2022-04-19 10:30:52 -04:00
Daiderd Jordan
44da835ac4
add forward compatibility for literalExample deprecation
...
Fixes #367
2021-10-23 15:06:42 +02:00
Thibault Gagnaux
547ccd60b4
Replaces cp with rsync to prevent partial copies across filesystems.
2019-12-22 22:31:34 +01:00
Thibault Gagnaux
a5d863ee64
fonts: Adds support if Nix is on another filesystem.
...
On Catalina, the default way is to install Nix on a new volume which breaks hardlinking the font files. If that is the case I just copy them.
2019-12-22 14:52:01 +01:00
Daiderd Jordan
4d892e7774
fonts: rewrite activation
...
The new implementation is a bit smarter and only updates fonts that
changed. But more importantly /run/current-system isn't used anymore
which breaks initial activation and installs the previous set of fonts
instead of the one in the new system.
Fixes #115
2019-02-17 11:31:40 +01:00
Piotr Limanowski
00cd92968e
skip buildEnv and create a package with /share/fonts
2018-10-06 20:38:01 +02:00
Piotr Limanowski
2a53ac278f
fonts: adds enableFontDir
flag
...
For NixOS compatibility reasons we're using enableFontDir flag that
in turn enables/disables font management in /Library/Fonts directory.
2018-10-05 22:27:29 +02:00
Piotr Limanowski
da886d015c
fonts: extracts helpers to top-level let expr
2018-10-05 19:17:43 +02:00
Piotr Limanowski
c2d7870587
adds info on automatic removal of manually-added fonts
2018-10-04 20:40:19 +02:00
Piotr Limanowski
397d2637e9
looks for fonts with both otf and ttf extensions
2018-10-04 13:48:57 +02:00
Piotr Limanowski
8fe33a584e
adds recursive font searching
2018-10-04 13:14:45 +02:00
Piotr Limanowski
6d0cf2d842
add tests for fonts
2018-10-02 19:59:23 +02:00
Piotr Limanowski
b10e114e33
re-add fonts on every rebuild
2018-09-30 14:53:16 +02:00
Piotr Limanowski
7a7cbdc165
initialise fonts module
2018-09-30 13:22:24 +02:00