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