fira-code: only extract the variable font
Fira Code includes a variable font[1] file that packs all the variants in a single file. Including both variable and non-variable fonts would be redundant and cause the system to list the same font twice. [1]: https://en.wikipedia.org/wiki/Variable_fonts
This commit is contained in:
parent
bd32ec4cdf
commit
a29fcc1c10
1 changed files with 3 additions and 2 deletions
|
@ -7,12 +7,13 @@ in fetchzip {
|
|||
|
||||
url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip";
|
||||
|
||||
# only extract the variable font because everything else is a duplicate
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile '*-VF.ttf' -d $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
sha256 = "16v62wj872ba4w7qxn4l6zjgqh7lrpwh1xax1bp1x9dpz08mnq06";
|
||||
sha256 = "1wbfjgvr9m5azl5w49y0hpqzgcraw6spd1wnxgxlzfx57x6gcw0k";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/tonsky/FiraCode";
|
||||
|
|
Loading…
Reference in a new issue