2016-10-08 15:00:08 +01:00
|
|
|
{ stdenv, requireFile, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "input-fonts-${version}";
|
|
|
|
version = "2016-10-06"; # date of the download and checksum
|
|
|
|
|
|
|
|
src = requireFile {
|
|
|
|
name = "Input-Font.zip";
|
|
|
|
url = "http://input.fontbureau.com/download/";
|
|
|
|
sha256 = "06hrsrb5a6hzrgkkhk0gdj92rhgr433vgn4j5g3pd8f1ijlfqn4y";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
find Input_Fonts -name "*.ttf" -exec cp -a {} "$out"/share/fonts/truetype/ \;
|
|
|
|
mkdir -p "$out"/share/doc
|
|
|
|
cp -a *.txt "$out"/share/doc/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fonts for Code, from Font Bureau";
|
|
|
|
longDescrition = ''
|
|
|
|
Input is a font family designed for computer programming, data,
|
|
|
|
and text composition. It was designed by David Jonathan Ross
|
|
|
|
between 2012 and 2014 and published by The Font Bureau. It
|
|
|
|
contains a wide array of styles so you can fine-tune the
|
|
|
|
typography that works best in your editing environment.
|
|
|
|
|
|
|
|
Input Mono is a monospaced typeface, where all characters occupy
|
|
|
|
a fixed width. Input Sans and Serif are proportional typefaces
|
|
|
|
that are designed with all of the features of a good monospace —
|
|
|
|
generous spacing, large punctuation, and easily distinguishable
|
|
|
|
characters — but without the limitations of a fixed width.
|
|
|
|
'';
|
|
|
|
homepage = http://input.fontbureau.com;
|
2016-10-09 04:01:34 +01:00
|
|
|
license = licenses.unfree;
|
2016-10-08 15:00:08 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|