nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation {
8 pname = "lato";
9 version = "2.0";
10
11 src = fetchzip {
12 url = "https://www.latofonts.com/files/Lato2OFL.zip";
13 hash = "sha256-n1TsqigCQIGqyGLGTjLtjHuBf/iCwRlnqh21IHfAuXI=";
14 stripRoot = false;
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 install -Dm644 Lato2OFL/*.ttf \
21 --target-directory=$out/share/fonts/lato
22
23 runHook postInstall
24 '';
25
26 meta = {
27 homepage = "https://www.latofonts.com";
28 description = "Sans-serif typeface family designed in Summer 2010 by Łukasz Dziedzic";
29 longDescription = ''
30 Lato is a sans-serif typeface family designed in the Summer 2010
31 by Warsaw-based designer Łukasz Dziedzic ("Lato" means "Summer"
32 in Polish). In December 2010 the Lato family was published
33 under the open-source Open Font License by his foundry tyPoland,
34 with support from Google.
35
36 In 2013-2014, the family was greatly extended to cover 3000+
37 glyphs per style. The Lato 2.010 family now supports 100+
38 Latin-based languages, 50+ Cyrillic-based languages as well as
39 Greek and IPA phonetics. In the process, the metrics and kerning
40 of the family have been revised and four additional weights were
41 created.
42 '';
43 license = lib.licenses.ofl;
44 platforms = lib.platforms.all;
45 maintainers = with lib.maintainers; [ chris-martin ];
46 };
47}