Add Fira font.

Fira is the font for FirefoxOS.

- https://github.com/mozilla/Fira
- http://www.carrois.com/fira-3-1/
This commit is contained in:
Rüdiger Sonderfeld 2014-08-19 18:00:06 +02:00 committed by Domen Kožar
parent 624fb66605
commit 6525bdf213
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "fira-3.111";
src = fetchurl {
url = "http://www.carrois.com/wordpress/downloads/fira_3_1/FiraFonts3111.zip";
sha256 = "3ced3df236b0b0eec1b390885c53ac02f3e3f830e9449414230717334a0b2457";
};
buildInputs = [unzip];
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/fonts/opentype
find . -name "*.otf" -exec cp -v {} $out/share/fonts/opentype \;
'';
meta = with stdenv.lib; {
homepage = http://www.carrois.com/fira-3-1/;
description = "Sans-serif and monospace font for Firefox OS";
longDescription = ''
Fira Sans is a sans-serif font designed by Erik Spiekermann,
Ralph du Carrois, Anja Meiners and Botio Nikoltchev of Carrois
Type Design for Mozilla Firefox OS. It is closely related to
Spiekermann's FF Meta typeface. Available in Two, Four, Eight,
Hair, Thin, Ultra Light, Extra Light, Light, Book, Regular,
Medium, Semi Bold, Bold, Extra Bold, Heavy weights with
corresponding italic versions. Fira Mono is a matching
monospace variant of Fira Sans. It is available in regular, and
bold weights.
'';
license = licenses.ofl;
platforms = platforms.all;
};
}

View File

@ -8024,6 +8024,8 @@ let
eb-garamond = callPackage ../data/fonts/eb-garamond { };
fira = callPackage ../data/fonts/fira { };
freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
freepats = callPackage ../data/misc/freepats { };