···11+{ stdenv, requireFile, unzip }:
22+33+stdenv.mkDerivation rec {
44+ name = "input-fonts-${version}";
55+ version = "2016-10-06"; # date of the download and checksum
66+77+ src = requireFile {
88+ name = "Input-Font.zip";
99+ url = "http://input.fontbureau.com/download/";
1010+ sha256 = "06hrsrb5a6hzrgkkhk0gdj92rhgr433vgn4j5g3pd8f1ijlfqn4y";
1111+ };
1212+1313+ nativeBuildInputs = [ unzip ];
1414+1515+ phases = [ "unpackPhase" "installPhase" ];
1616+1717+ sourceRoot = ".";
1818+1919+ installPhase = ''
2020+ mkdir -p $out/share/fonts/truetype
2121+ find Input_Fonts -name "*.ttf" -exec cp -a {} "$out"/share/fonts/truetype/ \;
2222+ mkdir -p "$out"/share/doc
2323+ cp -a *.txt "$out"/share/doc/
2424+ '';
2525+2626+ meta = with stdenv.lib; {
2727+ description = "Fonts for Code, from Font Bureau";
2828+ longDescrition = ''
2929+ Input is a font family designed for computer programming, data,
3030+ and text composition. It was designed by David Jonathan Ross
3131+ between 2012 and 2014 and published by The Font Bureau. It
3232+ contains a wide array of styles so you can fine-tune the
3333+ typography that works best in your editing environment.
3434+3535+ Input Mono is a monospaced typeface, where all characters occupy
3636+ a fixed width. Input Sans and Serif are proportional typefaces
3737+ that are designed with all of the features of a good monospace —
3838+ generous spacing, large punctuation, and easily distinguishable
3939+ characters — but without the limitations of a fixed width.
4040+ '';
4141+ homepage = http://input.fontbureau.com;
4242+ license = licenses.proprietary;
4343+ maintainers = with maintainers; [ romildo ];
4444+ platforms = platforms.all;
4545+ };
4646+}