nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 55 lines 1.9 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 unzip, 6}: 7 8stdenv.mkDerivation rec { 9 name = "poly"; 10 11 regular = fetchurl { 12 # Finally a mirror that has a sha256 that doesn't change. 13 url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Regular.otf"; 14 sha256 = "1mxp2lvki6b1h7r9xcj1ld0g4z5y3dmsal85xam4yr764zpjzaiw"; 15 }; 16 17 italic = fetchurl { 18 # Finally a mirror that has a sha256 that doesn't change. 19 url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Italic.otf"; 20 sha256 = "1chzcy3kyi7wpr4iq4aj1v24fq1wwph1v5z96dimlqcrnvm66h2l"; 21 }; 22 23 nativeBuildInputs = [ unzip ]; 24 25 sourceRoot = "."; 26 27 dontUnpack = true; 28 29 installPhase = '' 30 mkdir -p $out/share/fonts/opentype 31 cp ${regular} $out/share/fonts/opentype/Poly-Regular.otf 32 cp ${italic} $out/share/fonts/opentype/Poly-Italic.otf 33 ''; 34 35 outputHashAlgo = "sha256"; 36 outputHashMode = "recursive"; 37 outputHash = "11d7ldryfxi0wzfrg1bhw23a668a44vdb8gggxryvahmp5ahmq2h"; 38 39 meta = { 40 description = "Medium contrast serif font"; 41 longDescription = '' 42 With short ascenders and a very high x-height, Poly is efficient in small 43 sizes. Thanks to its careful balance between the x-height and glyph widths, 44 it allows more economy and legibility than standard web serifs, even in 45 small sizes. The aglutinative language for which it was designed contains 46 very long words. The goal was to develop a typeface that would tolerate 47 cramped tracking and that would increase the number of letters on a single 48 line. Poly is a Unicode typeface family that supports Open Type features 49 and languages that use the Latin script and its variants. 50 ''; 51 homepage = "http://www.fontsquirrel.com/fonts/poly"; 52 license = lib.licenses.ofl; 53 maintainers = with lib.maintainers; [ relrod ]; 54 }; 55}