simplify and fix font installation

This commit is contained in:
Cyryl Płotnicki 2022-07-06 22:28:42 +01:00
parent 485ee775d4
commit a4aec077f7

View file

@ -66,16 +66,13 @@
};
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
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
'';
sha256 = "sha256-r4R7+GrdbksV+EtV68RlzTauTgBS3tzlqawgTMXyJW8=";
})
(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
'')
emojione
fira-code