fix fonts on a mac
This commit is contained in:
parent
268bba0e0e
commit
c0f24a6e93
1 changed files with 11 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue