1 { lib, stdenv, fetchurl, unzip }:
3 stdenv.mkDerivation rec {
7 # Finally a mirror that has a sha256 that doesn't change.
8 url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Regular.otf";
9 sha256 = "1mxp2lvki6b1h7r9xcj1ld0g4z5y3dmsal85xam4yr764zpjzaiw";
13 # Finally a mirror that has a sha256 that doesn't change.
14 url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Italic.otf";
15 sha256 = "1chzcy3kyi7wpr4iq4aj1v24fq1wwph1v5z96dimlqcrnvm66h2l";
18 nativeBuildInputs = [unzip];
25 mkdir -p $out/share/fonts/opentype
26 cp ${regular} $out/share/fonts/opentype/Poly-Regular.otf
27 cp ${italic} $out/share/fonts/opentype/Poly-Italic.otf
30 outputHashAlgo = "sha256";
31 outputHashMode = "recursive";
32 outputHash = "11d7ldryfxi0wzfrg1bhw23a668a44vdb8gggxryvahmp5ahmq2h";
35 description = "Medium contrast serif font";
37 With short ascenders and a very high x-height, Poly is efficient in small
38 sizes. Thanks to its careful balance between the x-height and glyph widths,
39 it allows more economy and legibility than standard web serifs, even in
40 small sizes. The aglutinative language for which it was designed contains
41 very long words. The goal was to develop a typeface that would tolerate
42 cramped tracking and that would increase the number of letters on a single
43 line. Poly is a Unicode typeface family that supports Open Type features
44 and languages that use the Latin script and its variants.
46 homepage = "http://www.fontsquirrel.com/fonts/poly";
47 license = lib.licenses.ofl;
48 maintainers = with lib.maintainers; [ relrod ];