git.iko.soy/typeable/nixpkgs
on master help sign in
termtekst: init -> 1.0 (#43045)
commit5902e11cd650e8eb53e9e507aef6ff6afe9fbce8 authorleenaars <leenaars@users.noreply.github.com> dateFri 6 Jul 2018, 21:55 (8 years ago) parent29021ea
2 files changed+38
pkgs/misc/emulators/termtekst/default.nix+36 pkgs/top-level/all-packages.nix+2
pkgs/misc/emulators/termtekst/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib, fetchFromGitHub, python3Packages, ncurses }:
2+
3+python3Packages.buildPythonApplication rec {
4+ pname = "termtekst";
5+ version = "1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "zevv";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1gm7j5d49a60wm7px82b76f610i8pl8ccz4r6qsz90z4mp3lyw9b";
12+ };
13+
14+ propagatedBuildInputs = with python3Packages; [ ncurses requests ];
15+
16+ patchPhase = ''
17+ substituteInPlace setup.py \
18+ --replace "assert" "assert 1==1 #"
19+ substituteInPlace src/tt \
20+ --replace "locale.setlocale" "#locale.setlocale"
21+ '';
22+
23+ meta = with lib; {
24+ description = ''Console NOS Teletekst viewer in Python'';
25+ longDescription = ''
26+ Small Python app using curses to display Dutch NOS Teletekst on
27+ the Linux console. The original Teletekst font includes 2x6
28+ raster graphics glyphs which have no representation in unicode;
29+ as a workaround the braille set is abused to approximate the
30+ graphics.
31+ '';
32+ license = licenses.mit;
33+ maintainers = with maintainers; [ leenaars ];
34+ platforms = platforms.all;
35+ };
36+}
pkgs/top-level/all-packages.nix+2
@@ -14936,6 +14936,8 @@ with pkgs;
1493614936
1493714937 terminus_font_ttf = callPackage ../data/fonts/terminus-font-ttf { };
1493814938
14939+ termtekst = callPackage ../misc/emulators/termtekst { };
14940+
1493914941 tex-gyre = callPackages ../data/fonts/tex-gyre { };
1494014942
1494114943 tex-gyre-math = callPackages ../data/fonts/tex-gyre-math { };