fix fonts on a mac

This commit is contained in:
Cyryl Płotnicki 2022-11-16 14:21:48 +00:00
parent 268bba0e0e
commit c0f24a6e93

View file

@ -21,15 +21,17 @@ in {
fonts.fontDir.enable = true; fonts.fontDir.enable = true;
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
(fetchzip { (runCommand "berkeley-fonts" { } ''
name = "berkeley-mono-fonts"; mkdir -vp "$out/share/fonts/opentype"
url = "file:///" + ../../fonts.zip; mkdir -vp "$out/share/fonts/truetype"
postFetch = '' ${pkgs.unzip}/bin/unzip ${
mkdir -p $out/share/fonts ../../fonts.zip
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype } \*.otf -d $out/share/fonts/opentype
''; ${pkgs.unzip}/bin/unzip ${
sha256 = "sha256-y+j3iHGX0P1pdylLJTlxbhyQ1oFAwini3o3ljLzOsoM="; ../../fonts.zip
}) } \*.ttf -d $out/share/fonts/truetype
'')
nerdfonts nerdfonts
fira-code fira-code
font-awesome font-awesome