2017-07-12 11:39:34 +00:00
|
|
|
{ stdenv, fetchurl, python3, bdftopcf, mkfontdir, mkfontscale }:
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2010-02-06 22:28:39 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-03 00:56:56 +00:00
|
|
|
pname = "terminus-font";
|
2019-08-04 12:23:28 +00:00
|
|
|
version = "4.48";
|
2019-01-03 00:56:56 +00:00
|
|
|
name = "${pname}-${version}"; # set here for use in URL below
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2010-02-06 22:28:39 +00:00
|
|
|
src = fetchurl {
|
2019-01-03 00:56:56 +00:00
|
|
|
url = "mirror://sourceforge/project/${pname}/${name}/${name}.tar.gz";
|
2019-08-04 12:23:28 +00:00
|
|
|
sha256 = "1bwlkj39rqbyq57v5yssayav6hzv1n11b9ml2s0dpiyfsn6rqy9l";
|
2010-02-06 22:28:39 +00:00
|
|
|
};
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2019-01-02 21:07:20 +00:00
|
|
|
nativeBuildInputs = [ python3 bdftopcf mkfontdir mkfontscale ];
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2010-02-06 22:28:39 +00:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile --replace 'fc-cache' '#fc-cache'
|
|
|
|
'';
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2019-01-02 21:07:20 +00:00
|
|
|
enableParallelBuilding = true;
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2019-01-02 21:07:20 +00:00
|
|
|
installTargets = [ "install" "fontdir" ];
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2015-05-27 19:56:04 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-02-06 22:28:39 +00:00
|
|
|
description = "A clean fixed width font";
|
|
|
|
longDescription = ''
|
|
|
|
Terminus Font is designed for long (8 and more hours per day) work
|
|
|
|
with computers. Version 4.30 contains 850 characters, covers about
|
|
|
|
120 language sets and supports ISO8859-1/2/5/7/9/13/15/16,
|
|
|
|
Paratype-PT154/PT254, KOI8-R/U/E/F, Esperanto, many IBM, Windows and
|
|
|
|
Macintosh code pages, as well as the IBM VGA, vt100 and xterm
|
|
|
|
pseudographic characters.
|
|
|
|
|
|
|
|
The sizes present are 6x12, 8x14, 8x16, 10x20, 11x22, 12x24, 14x28 and
|
|
|
|
16x32. The styles are normal and bold (except for 6x12), plus
|
|
|
|
EGA/VGA-bold for 8x14 and 8x16.
|
|
|
|
'';
|
2019-01-02 21:07:20 +00:00
|
|
|
homepage = http://terminus-font.sourceforge.net/;
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-05-27 19:56:04 +00:00
|
|
|
maintainers = with maintainers; [ astsmtl ];
|
2010-02-06 22:28:39 +00:00
|
|
|
};
|
|
|
|
}
|