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.fonts = with pkgs; [
(fetchzip {
name = "berkeley-mono-fonts";
url = "file:///" + ../../fonts.zip;
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
sha256 = "sha256-y+j3iHGX0P1pdylLJTlxbhyQ1oFAwini3o3ljLzOsoM=";
})
(runCommand "berkeley-fonts" { } ''
mkdir -vp "$out/share/fonts/opentype"
mkdir -vp "$out/share/fonts/truetype"
${pkgs.unzip}/bin/unzip ${
../../fonts.zip
} \*.otf -d $out/share/fonts/opentype
${pkgs.unzip}/bin/unzip ${
../../fonts.zip
} \*.ttf -d $out/share/fonts/truetype
'')
nerdfonts
fira-code
font-awesome