1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00
Commit graph

29 commits

Author SHA1 Message Date
Emily
7d4f867210 fonts: remove fonts.fontDir.enable
As far as I can tell, this isn't required to get fonts to work on
NixOS, so we shouldn't require it on nix-darwin either, even if the
implementations are superficially similar.
2024-06-13 11:56:58 +01:00
Emily
adf578e398 fonts: reimplement and rename to fonts.packages
Fixes: #120
Fixes: #722
Fixes: #752
Closes: #692
2024-06-13 11:56:10 +01:00
Emily
27517d2d18 fonts: refactor system.build.fonts
Process substitution behaves better with variables and it's good
practice to use `lib.escapeShellArgs`.
2024-06-13 11:55:36 +01:00
Emily
09e72ff9b9 fonts: remove with lib 2024-06-13 11:54:58 +01:00
Weijia Wang
def1e23be8 treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
XMLHexagram
4051e3027d
Add type definition on fonts.fontDir.enable 2024-01-16 21:07:41 +08:00
Benjamin Lee
ba92c4d307
add support for dfont to the fonts module 2023-09-08 15:43:25 -07:00
Quentin Smith
f1a206c960
Merge remote-tracking branch 'origin/master' into fonts 2023-07-19 17:04:42 -04:00
Emily
e65131e69c treewide: convert all option docs to Markdown
This process was automated by [my fork of `nix-doc-munge`]; thanks
to @pennae for writing this tool! It automatically checks that the
resulting documentation doesn't change, although my fork loosens
this a little to ignore some irrelevant whitespace and typographical
differences.

As of this commit there is no DocBook remaining in the options
documentation.

You can play along at home if you want to reproduce this commit:

    $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \
      nix shell nixpkgs#coreutils \
      -c find . -name '*.nix' \
      -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \
      {} +

[my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2023-06-24 10:48:55 +01:00
David Baynard
d20ba9bf9c Document font overriding behaviour 2023-06-01 22:21:31 +01:00
Quentin Smith
bc776e4940
Match nixos handling of fonts.fonts by looking for .ttf, .ttc, and .otf files in any directory in the passed packages 2023-05-17 20:31:24 -04:00
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