git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17408 from AndersonTorres/tecoc

tecoc: init at 20150606

commitf5c347aea6c987f21cc380e33c8cb6b4852a09cb authorJörg Thalheim <joerg@higgsboson.tk> dateSat 1 Oct 2016, 15:38 (10 years ago) parentc7d3f63bcb98e2
2 files changed+58
pkgs/applications/editors/tecoc/default.nix+56 pkgs/top-level/all-packages.nix+2
pkgs/applications/editors/tecoc/default.nixnew file+56
@@ -0,0 +1,56 @@
1+{ stdenv, fetchgit
2+, ncurses }:
3+
4+stdenv.mkDerivation rec {
5+
6+ name = "tecoc-git-${version}";
7+ version = "20150606";
8+
9+ src = fetchgit {
10+ url = "https://github.com/blakemcbride/TECOC.git";
11+ rev = "d7dffdeb1dfb812e579d6d3b518545b23e1b50cb";
12+ sha256 = "11zfa73dlx71c0hmjz5n3wqcvk6082rpb4sss877nfiayisc0njj";
13+ };
14+
15+ buildInputs = [ ncurses ];
16+
17+ configurePhase = ''
18+ cp src/makefile.linux src/Makefile
19+ '';
20+ buildPhase = ''
21+ make CC=${stdenv.cc}/bin/cc -C src/
22+ '';
23+ installPhase = ''
24+ mkdir -p $out/bin $out/share/doc/${name} $out/lib/teco/macros
25+ cp src/tecoc $out/bin
26+ cp src/aaout.txt doc/* $out/share/doc/${name}
27+ cp lib/* lib2/* $out/lib/teco/macros
28+ (cd $out/bin
29+ ln -s tecoc Make
30+ ln -s tecoc mung
31+ ln -s tecoc teco
32+ ln -s tecoc Inspect )
33+ '';
34+
35+ meta = with stdenv.lib; {
36+ description = "A clone of the good old TECO editor";
37+ longDescription = ''
38+ For those who don't know: TECO is the acronym of Tape Editor and
39+ COrrector (because it was a paper tape edition tool in its debut
40+ days). Now the acronym follows after Text Editor and Corrector,
41+ or Text Editor Character-Oriented.
42+
43+ TECO is a character-oriented text editor, originally developed
44+ bu Dan Murphy at MIT circa 1962. It is also a Turing-complete
45+ imperative interpreted programming language for text
46+ manipulation, done via user-loaded sets of macros. In fact, Emacs
47+ was born as a set of Editor MACroS for TECO.
48+
49+ TECOC is a portable C implementation of TECO-11.
50+ '';
51+ homepage = https://github.com/blakemcbride/TECOC;
52+ maintainers = [ maintainers.AndersonTorres ];
53+ platforms = platforms.unix;
54+ };
55+}
56+# TODO: test in other platforms - especially Darwin
pkgs/top-level/all-packages.nix+2
@@ -14253,6 +14253,8 @@ in
1425314253
1425414254 ssvnc = callPackage ../applications/networking/remote/ssvnc { };
1425514255
14256+ tecoc = callPackage ../applications/editors/tecoc { };
14257+
1425614258 viber = callPackage ../applications/networking/instant-messengers/viber { };
1425714259
1425814260 sonic-pi = callPackage ../applications/audio/sonic-pi {