comfortaa: 3.001 -> 3.101

This commit is contained in:
Robert Helgesson 2021-08-06 00:11:16 +02:00
parent 8757e1f1c3
commit 875e87727e

View file

@ -1,17 +1,22 @@
{ lib, fetchzip }:
{ lib, fetchFromGitHub }:
let
version = "3.001";
in fetchzip rec {
version = "3.101";
in fetchFromGitHub rec {
name = "comfortaa-${version}";
url = "https://orig00.deviantart.net/40a3/f/2017/093/d/4/comfortaa___font_by_aajohan-d1qr019.zip";
owner = "googlefonts";
repo = "comfortaa";
rev = version;
postFetch = ''
mkdir -p $out/share/fonts $out/share/doc
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
unzip -j $downloadedFile \*/FONTLOG.txt \*/donate.html -d $out/share/doc/${name}
tar -xf $downloadedFile --strip=1
mkdir -p $out/share/fonts/truetype $out/share/doc/comfortaa
cp fonts/TTF/*.ttf $out/share/fonts/truetype
cp FONTLOG.txt README.md $out/share/doc/comfortaa
'';
sha256 = "0z7xr0cnn6ghwivrm5b5awq9bzhnay3y99qq6dkdgfkfdsaz0n9h";
sha256 = "06jhdrfzl01ma085bp354g002ypmkbp6a51jn1lsj77zfj2mfmfc";
meta = with lib; {
homepage = "http://aajohan.deviantart.com/art/Comfortaa-font-105395949";