mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ lib, fetchFromGitHub }:
|
|
|
|
let
|
|
version = "4.106";
|
|
in fetchFromGitHub {
|
|
name = "fira-${version}";
|
|
|
|
owner = "mozilla";
|
|
repo = "Fira";
|
|
rev = version;
|
|
|
|
postFetch = ''
|
|
tar xf $downloadedFile --strip=1
|
|
mkdir -p $out/share/fonts/opentype
|
|
cp otf/*.otf $out/share/fonts/opentype
|
|
'';
|
|
|
|
sha256 = "0c97nmihcq0ki7ywj8zn048a2bgrszc61lb9p0djfi65ar52jab4";
|
|
|
|
meta = with lib; {
|
|
homepage = https://mozilla.github.io/Fira/;
|
|
description = "Sans-serif 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.
|
|
'';
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|