termtekst: init -> 1.0 (#43045)
This commit is contained in:
parent
29021eab6a
commit
5902e11cd6
36
pkgs/misc/emulators/termtekst/default.nix
Normal file
36
pkgs/misc/emulators/termtekst/default.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -14936,6 +14936,8 @@ with pkgs;
|
||||||
|
|
||||||
terminus_font_ttf = callPackage ../data/fonts/terminus-font-ttf { };
|
terminus_font_ttf = callPackage ../data/fonts/terminus-font-ttf { };
|
||||||
|
|
||||||
|
termtekst = callPackage ../misc/emulators/termtekst { };
|
||||||
|
|
||||||
tex-gyre = callPackages ../data/fonts/tex-gyre { };
|
tex-gyre = callPackages ../data/fonts/tex-gyre { };
|
||||||
|
|
||||||
tex-gyre-math = callPackages ../data/fonts/tex-gyre-math { };
|
tex-gyre-math = callPackages ../data/fonts/tex-gyre-math { };
|
||||||
|
|
Loading…
Reference in a new issue