Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 50 lines 1.9 kB view raw
1{ lib, stdenv, fetchurl, unzip }: 2 3stdenv.mkDerivation rec { 4 name = "poly"; 5 6 regular = fetchurl { 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"; 10 }; 11 12 italic = fetchurl { 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"; 16 }; 17 18 nativeBuildInputs = [unzip]; 19 20 sourceRoot = "."; 21 22 dontUnpack = true; 23 24 installPhase = '' 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 28 ''; 29 30 outputHashAlgo = "sha256"; 31 outputHashMode = "recursive"; 32 outputHash = "11d7ldryfxi0wzfrg1bhw23a668a44vdb8gggxryvahmp5ahmq2h"; 33 34 meta = { 35 description = "Medium contrast serif font"; 36 longDescription = '' 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. 45 ''; 46 homepage = "http://www.fontsquirrel.com/fonts/poly"; 47 license = lib.licenses.ofl; 48 maintainers = with lib.maintainers; [ relrod ]; 49 }; 50}