2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, python3
|
2022-10-13 22:16:16 +00:00
|
|
|
, bdftopcf, xorg
|
2020-02-16 09:46:35 +00:00
|
|
|
}:
|
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";
|
2021-09-14 22:47:22 +00:00
|
|
|
version = "4.49.1";
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2010-02-06 22:28:39 +00:00
|
|
|
src = fetchurl {
|
2021-09-14 22:47:22 +00:00
|
|
|
url = "mirror://sourceforge/project/${pname}/${pname}-${lib.versions.majorMinor version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0yggffiplk22lgqklfmd2c0rw8gwchynjh5kz4bz8yv2h6vw2qfr";
|
2010-02-06 22:28:39 +00:00
|
|
|
};
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2021-09-14 22:47:22 +00:00
|
|
|
patches = [ ./SOURCE_DATE_EPOCH-for-otb.patch ];
|
|
|
|
|
2020-02-16 09:46:35 +00:00
|
|
|
nativeBuildInputs =
|
2022-10-13 22:16:16 +00:00
|
|
|
[ python3 bdftopcf xorg.mkfontscale ];
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2020-02-16 09:46:35 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
2010-02-06 22:28:39 +00:00
|
|
|
substituteInPlace Makefile --replace 'fc-cache' '#fc-cache'
|
2020-06-21 12:08:25 +00:00
|
|
|
substituteInPlace Makefile --replace 'gzip' 'gzip -n'
|
2010-02-06 22:28:39 +00:00
|
|
|
'';
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2021-09-14 22:47:22 +00:00
|
|
|
installTargets = [ "install" "install-otb" "fontdir" ];
|
2023-04-23 10:31:11 +00:00
|
|
|
# fontdir depends on the previous two targets, but this is not known
|
|
|
|
# to make, so we need to disable parallelism:
|
|
|
|
enableParallelInstalling = false;
|
2013-11-28 02:37:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Clean fixed width font";
|
2010-02-06 22:28:39 +00:00
|
|
|
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.
|
|
|
|
'';
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://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
|
|
|
};
|
|
|
|
}
|