summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2016-10-01 15:38:35 +0200
committerGitHub <noreply@github.com>2016-10-01 15:38:35 +0200
commitf5c347aea6c987f21cc380e33c8cb6b4852a09cb (patch)
treeb8f90807de1071110e0a902a19b205b5a3d620ed /pkgs
parentc7d3f63f5d42a246538f23bdd30074b67c0389cc (diff)
parentbcb98e2ce18e32d9e9118ff4fa78a763d2f930bd (diff)
Merge pull request #17408 from AndersonTorres/tecoc
tecoc: init at 20150606
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/tecoc/default.nix56
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/editors/tecoc/default.nix b/pkgs/applications/editors/tecoc/default.nix
new file mode 100644
index 0000000000000..a3f58012e534b
--- /dev/null
+++ b/pkgs/applications/editors/tecoc/default.nix
@@ -0,0 +1,56 @@
+{ stdenv, fetchgit
+, ncurses }:
+
+stdenv.mkDerivation rec {
+
+  name = "tecoc-git-${version}";
+  version = "20150606";
+
+  src = fetchgit {
+    url = "https://github.com/blakemcbride/TECOC.git";
+    rev = "d7dffdeb1dfb812e579d6d3b518545b23e1b50cb";
+    sha256 = "11zfa73dlx71c0hmjz5n3wqcvk6082rpb4sss877nfiayisc0njj";
+  };
+
+  buildInputs = [ ncurses ];
+
+  configurePhase = ''
+    cp src/makefile.linux src/Makefile    
+  '';
+  buildPhase = ''
+    make CC=${stdenv.cc}/bin/cc -C src/
+  '';
+  installPhase = ''
+    mkdir -p $out/bin $out/share/doc/${name} $out/lib/teco/macros
+    cp src/tecoc $out/bin
+    cp src/aaout.txt doc/* $out/share/doc/${name}
+    cp lib/* lib2/* $out/lib/teco/macros
+    (cd $out/bin
+     ln -s tecoc Make
+     ln -s tecoc mung
+     ln -s tecoc teco
+     ln -s tecoc Inspect )
+  '';
+	
+  meta = with stdenv.lib; {
+    description = "A clone of the good old TECO editor";
+    longDescription = ''
+      For those who don't know: TECO is the acronym of Tape Editor and
+      COrrector (because it was a paper tape edition tool in its debut 
+      days). Now the acronym follows after Text Editor and Corrector, 
+      or Text Editor Character-Oriented.
+      
+      TECO is a character-oriented text editor, originally developed
+      bu Dan Murphy at MIT circa 1962. It is also a Turing-complete
+      imperative interpreted programming language for text
+      manipulation, done via user-loaded sets of macros. In fact, Emacs
+      was born as a set of Editor MACroS for TECO.
+
+      TECOC is a portable C implementation of TECO-11.
+ '';
+    homepage = https://github.com/blakemcbride/TECOC;
+    maintainers = [ maintainers.AndersonTorres ];
+    platforms = platforms.unix;
+  };
+}
+# TODO: test in other platforms - especially Darwin
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index cf4889ef9ba5b..99d22b5549cc9 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14253,6 +14253,8 @@ in
 
   ssvnc = callPackage ../applications/networking/remote/ssvnc { };
 
+  tecoc = callPackage ../applications/editors/tecoc { };
+
   viber = callPackage ../applications/networking/instant-messengers/viber { };
 
   sonic-pi = callPackage ../applications/audio/sonic-pi {