2015-03-10 18:30:05 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2014-08-19 17:00:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-03-26 10:55:39 +00:00
|
|
|
name = "fira-4.004";
|
2014-08-19 17:00:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-26 10:55:39 +00:00
|
|
|
url = "http://www.carrois.com/downloads/fira_4_0/FiraFonts4004.zip";
|
|
|
|
sha256 = "0mab1n4i8ayhzmpfm0dj07annghrfpnsfr2rhnwsyhkk5zxlh6v7";
|
2014-08-19 17:00:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [unzip];
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2015-03-26 10:55:39 +00:00
|
|
|
sourceRoot = "FiraFonts4004";
|
2014-08-19 17:00:06 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
find . -name "*.otf" -exec cp -v {} $out/share/fonts/opentype \;
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-03-10 18:30:05 +00:00
|
|
|
homepage = http://www.carrois.com/fira-4-0/;
|
2014-08-19 17:00:06 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|