9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
14 name = "${pname}-${version}";
18 hash = "sha256-38XFjRzOGasr030f+mRYT+ptlabpnVJfa+1s7ZAjS+k=";
26 # include a local file in order to make cc happy
27 ./001-fix-warning.patch
28 # remove the ENABLE_HELP target entirely - lyx and latex are huge!
29 ./002-remove-help.patch
41 # By no known reason libtirpc is not detected
42 NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
43 NIX_LDFLAGS = [ "-ltirpc" ];
45 cmakeConfigureFlags = [
50 inherit (src.meta) homepage;
51 description = "Table Editor And Planner, Or: Teapot";
53 Teapot is a compact spreadsheet software originally written by Michael
54 Haardt. It features a (n)curses-based text terminal interface, and
55 recently also a FLTK-based GUI.
57 These days, it may seem pointless having yet another spreadsheet program
58 (and one that doesn't even know how to load Microsoft Excel files). Its
59 compact size (130k for the ncurses executable, 140k for the GUI
60 executable, 300k for the self-contained Windows EXE) and the fact that it
61 can run across serial lines and SSH sessions make it an interesting choice
62 for embedded applications and as system administration utility, even more
63 so since it has a batch processing mode and comes with example code for
64 creating graphs from data sets.
66 Another interesting feature is its modern approach to spread sheet theory:
67 It sports true three-dimensional tables and iterative expressions. And
68 since it breaks compatibility with the usual notions of big spreadsheet
69 packages, it can also throw old syntactic cruft over board which many
70 spreadsheets still inherit from the days of VisiCalc on ancient CP/M
73 license = licenses.gpl3Plus;
74 maintainers = with maintainers; [ AndersonTorres ];
75 platforms = platforms.unix;
78 # TODO: patch/fix FLTK building
79 # TODO: add documentation