simplify and fix font installation
This commit is contained in:
parent
485ee775d4
commit
a4aec077f7
1 changed files with 7 additions and 10 deletions
|
@ -66,16 +66,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
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 ${./fonts.zip} \*.otf -d $out/share/fonts/opentype
|
||||||
mkdir -p $out/share/fonts
|
${pkgs.unzip}/bin/unzip ${./fonts.zip} \*.ttf -d $out/share/fonts/truetype
|
||||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
||||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
'')
|
||||||
'';
|
|
||||||
sha256 = "sha256-r4R7+GrdbksV+EtV68RlzTauTgBS3tzlqawgTMXyJW8=";
|
|
||||||
})
|
|
||||||
|
|
||||||
emojione
|
emojione
|
||||||
fira-code
|
fira-code
|
||||||
|
|
Loading…
Reference in a new issue