2016-10-08 15:00:08 +01:00
|
|
|
{ stdenv, requireFile, unzip }:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "input-fonts";
|
2019-11-25 20:48:56 +00:00
|
|
|
version = "2019-11-25"; # date of the download and checksum
|
2016-10-08 15:00:08 +01:00
|
|
|
|
|
|
|
src = requireFile {
|
|
|
|
name = "Input-Font.zip";
|
2019-07-10 20:52:51 +01:00
|
|
|
url = "https://input.fontbureau.com/download/";
|
2019-11-25 20:48:56 +00:00
|
|
|
sha256 = "10rax2a7vzidcs7kyfg5lv5bwp9i7kvjpdcsd10p0517syijkp3b";
|
2016-10-08 15:00:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2019-11-25 20:48:56 +00:00
|
|
|
outputHash = "15sdhqqqd4jgk80fw7ncx49avi9cxbdgyrvnrfya0066x4q4r6lv";
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2016-10-08 15:00:08 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fonts for Code, from Font Bureau";
|
2017-12-05 22:20:11 +00:00
|
|
|
longDescription = ''
|
2016-10-08 15:00:08 +01:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://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;
|
|
|
|
};
|
|
|
|
}
|