nixpkgs/pkgs/data/fonts/comfortaa/default.nix

25 lines
833 B
Nix
Raw Normal View History

2017-08-10 20:43:49 +01:00
{stdenv, fetchzip}:
2017-08-10 20:43:49 +01:00
let
version = "2.004";
2017-08-10 20:43:49 +01:00
in fetchzip rec {
name = "comfortaa-${version}";
2017-08-10 20:43:49 +01:00
url = "http://openfontlibrary.org/assets/downloads/comfortaa/38318a69b56162733bf82bc0170b7521/comfortaa.zip";
postFetch = ''
mkdir -p $out/share/fonts $out/share/doc
unzip -l $downloadedFile
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
unzip -j $downloadedFile \*/FONTLOG.txt \*/donate.html -d $out/share/doc/${name}
'';
2017-08-10 20:43:49 +01:00
sha256 = "1gnscf3kw9p5gbc5594a22cc6nmiir9mhp1nl3mkbzd4v1jfbh2h";
meta = with stdenv.lib; {
homepage = http://aajohan.deviantart.com/art/Comfortaa-font-105395949;
description = "A clean and modern font suitable for headings and logos";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [maintainers.rycee];
};
}