about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/terminus-font/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/data/fonts/terminus-font/default.nix')
-rw-r--r--nixpkgs/pkgs/data/fonts/terminus-font/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/fonts/terminus-font/default.nix b/nixpkgs/pkgs/data/fonts/terminus-font/default.nix
new file mode 100644
index 000000000000..c1ee2250c9a2
--- /dev/null
+++ b/nixpkgs/pkgs/data/fonts/terminus-font/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchurl, python3, bdftopcf, mkfontdir, mkfontscale }:
+
+stdenv.mkDerivation rec {
+  name = "terminus-font-4.46";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/project/terminus-font/${name}/${name}.tar.gz";
+    sha256 = "1kavqw38aarz0vpwz4b7l6l8xkyc5096zaf9ypqnvdwraqz46aaf";
+  };
+
+  buildInputs = [ python3 bdftopcf mkfontdir mkfontscale ];
+
+  patchPhase = ''
+    substituteInPlace Makefile --replace 'fc-cache' '#fc-cache'
+  '';
+
+  configurePhase = ''
+    sh ./configure --prefix=$out
+  '';
+
+  installPhase = ''
+    make install fontdir
+  '';
+
+  meta = with stdenv.lib; {
+    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.
+    '';
+    homepage = http://www.is-vn.bg/hamster/;
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ astsmtl ];
+    platforms = platforms.linux;
+  };
+}