2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchFromGitHub }:
|
2014-08-19 17:00:06 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
let
|
|
|
|
version = "4.106";
|
|
|
|
in fetchFromGitHub {
|
|
|
|
name = "fira-${version}";
|
2014-08-19 17:00:06 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
owner = "mozilla";
|
|
|
|
repo = "Fira";
|
|
|
|
rev = version;
|
2014-08-19 17:00:06 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
2019-05-13 02:55:32 +01:00
|
|
|
tar xf $downloadedFile --strip=1
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
cp otf/*.otf $out/share/fonts/opentype
|
2014-08-19 17:00:06 +01:00
|
|
|
'';
|
|
|
|
|
2018-06-10 19:20:03 +01:00
|
|
|
sha256 = "0c97nmihcq0ki7ywj8zn048a2bgrszc61lb9p0djfi65ar52jab4";
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2018-06-10 19:20:03 +01:00
|
|
|
homepage = https://mozilla.github.io/Fira/;
|
2015-04-10 21:36:18 +01:00
|
|
|
description = "Sans-serif font for Firefox OS";
|
2014-08-19 17:00:06 +01:00
|
|
|
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
|
2015-04-10 21:36:18 +01:00
|
|
|
corresponding italic versions.
|
2014-08-19 17:00:06 +01:00
|
|
|
'';
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|