2018-09-30 19:42:00 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2018-10-12 22:02:56 +02:00
|
|
|
font = pkgs.runCommand "font-0.0.0" {} ''
|
2023-08-03 02:11:40 +01:00
|
|
|
mkdir -p $out
|
|
|
|
touch $out/Font.ttf
|
2018-10-12 22:02:56 +02:00
|
|
|
'';
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2023-08-03 02:11:40 +01:00
|
|
|
fonts.packages = [ font ];
|
2022-09-15 20:26:54 +02:00
|
|
|
|
2018-09-30 19:42:00 +02:00
|
|
|
test = ''
|
2023-08-03 02:11:40 +01:00
|
|
|
echo "checking fonts in /Library/Fonts/Nix Fonts" >&2
|
|
|
|
test -e "${config.out}/Library/Fonts/Nix Fonts"/*/Font.ttf
|
2019-02-17 11:21:12 +01:00
|
|
|
|
|
|
|
echo "checking activation of fonts in /activate" >&2
|
2023-08-03 02:11:40 +01:00
|
|
|
grep '/Library/Fonts/Nix Fonts' ${config.out}/activate
|
2018-09-30 19:42:00 +02:00
|
|
|
'';
|
|
|
|
}
|