diff options
author | leenaars <leenaars@users.noreply.github.com> | 2018-07-06 21:55:18 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-07-06 21:55:18 +0200 |
commit | 5902e11cd650e8eb53e9e507aef6ff6afe9fbce8 (patch) | |
tree | d0ab6023e45be7aed93ddb4c1da49550f5fcdb7f | |
parent | 29021eab6afcd44791cef283296aeec476dde6c2 (diff) | |
download | nixlib-5902e11cd650e8eb53e9e507aef6ff6afe9fbce8.tar nixlib-5902e11cd650e8eb53e9e507aef6ff6afe9fbce8.tar.gz nixlib-5902e11cd650e8eb53e9e507aef6ff6afe9fbce8.tar.bz2 nixlib-5902e11cd650e8eb53e9e507aef6ff6afe9fbce8.tar.lz nixlib-5902e11cd650e8eb53e9e507aef6ff6afe9fbce8.tar.xz nixlib-5902e11cd650e8eb53e9e507aef6ff6afe9fbce8.tar.zst nixlib-5902e11cd650e8eb53e9e507aef6ff6afe9fbce8.zip |
termtekst: init -> 1.0 (#43045)
-rw-r--r-- | pkgs/misc/emulators/termtekst/default.nix | 36 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/termtekst/default.nix b/pkgs/misc/emulators/termtekst/default.nix new file mode 100644 index 000000000000..8186aba1ee56 --- /dev/null +++ b/pkgs/misc/emulators/termtekst/default.nix @@ -0,0 +1,36 @@ +{ lib, fetchFromGitHub, python3Packages, ncurses }: + +python3Packages.buildPythonApplication rec { + pname = "termtekst"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "zevv"; + repo = pname; + rev = "v${version}"; + sha256 = "1gm7j5d49a60wm7px82b76f610i8pl8ccz4r6qsz90z4mp3lyw9b"; + }; + + propagatedBuildInputs = with python3Packages; [ ncurses requests ]; + + patchPhase = '' + substituteInPlace setup.py \ + --replace "assert" "assert 1==1 #" + substituteInPlace src/tt \ + --replace "locale.setlocale" "#locale.setlocale" + ''; + + meta = with lib; { + description = ''Console NOS Teletekst viewer in Python''; + longDescription = '' + Small Python app using curses to display Dutch NOS Teletekst on + the Linux console. The original Teletekst font includes 2x6 + raster graphics glyphs which have no representation in unicode; + as a workaround the braille set is abused to approximate the + graphics. + ''; + license = licenses.mit; + maintainers = with maintainers; [ leenaars ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a2f78782e6ab..f7084b0a5fd2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14936,6 +14936,8 @@ with pkgs; terminus_font_ttf = callPackage ../data/fonts/terminus-font-ttf { }; + termtekst = callPackage ../misc/emulators/termtekst { }; + tex-gyre = callPackages ../data/fonts/tex-gyre { }; tex-gyre-math = callPackages ../data/fonts/tex-gyre-math { }; |