summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-02-13 19:22:16 +0000
committerLudovic Courtès <ludo@gnu.org>2010-02-13 19:22:16 +0000
commit62665b519ea1e29b838b55f78e4f86a1cce56d51 (patch)
treeb1dcd5a260e898ede5f0fefa85afc1302802d49b /pkgs
parent58747b8bf2efa3a0b4399d2b4fbf3a79e753ce8b (diff)
downloadnixlib-62665b519ea1e29b838b55f78e4f86a1cce56d51.tar
nixlib-62665b519ea1e29b838b55f78e4f86a1cce56d51.tar.gz
nixlib-62665b519ea1e29b838b55f78e4f86a1cce56d51.tar.bz2
nixlib-62665b519ea1e29b838b55f78e4f86a1cce56d51.tar.lz
nixlib-62665b519ea1e29b838b55f78e4f86a1cce56d51.tar.xz
nixlib-62665b519ea1e29b838b55f78e4f86a1cce56d51.tar.zst
nixlib-62665b519ea1e29b838b55f78e4f86a1cce56d51.zip
Add GNU TeXmacs.
svn path=/nixpkgs/trunk/; revision=19985
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/office/texmacs/default.nix44
-rw-r--r--pkgs/top-level/all-packages.nix5
-rw-r--r--pkgs/top-level/guile-2-test.nix7
3 files changed, 53 insertions, 3 deletions
diff --git a/pkgs/applications/office/texmacs/default.nix b/pkgs/applications/office/texmacs/default.nix
new file mode 100644
index 000000000000..6172c055c071
--- /dev/null
+++ b/pkgs/applications/office/texmacs/default.nix
@@ -0,0 +1,44 @@
+{ fetchurl, stdenv, texLive, guile, libX11, libXext }:
+
+let version = "1.0.7"; in
+stdenv.mkDerivation {
+  name = "texmacs-${version}";
+
+  src = fetchurl {
+    url = "ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-${version}-src.tar.gz";
+    sha256 = "1jdynapwc4fnp4ff71whq7l2jv0v3zwq2v2w463ppxm9cbi3bm5v";
+  };
+
+  buildInputs = [ texLive guile libX11 libXext ];
+
+  meta = {
+    description = "GNU TeXmacs, a WYSIWYW editing platform with special features for scientists";
+
+    longDescription =
+      '' GNU TeXmacs is a free wysiwyw (what you see is what you want)
+         editing platform with special features for scientists.  The software
+         aims to provide a unified and user friendly framework for editing
+         structured documents with different types of content (text,
+         graphics, mathematics, interactive content, etc.).  The rendering
+         engine uses high-quality typesetting algorithms so as to produce
+         professionally looking documents, which can either be printed out or
+         presented from a laptop.
+
+         The software includes a text editor with support for mathematical
+         formulas, a small technical picture editor and a tool for making
+         presentations from a laptop.  Moreover, TeXmacs can be used as an
+         interface for many external systems for computer algebra, numerical
+         analysis, statistics, etc.  New presentation styles can be written
+         by the user and new features can be added to the editor using the
+         Scheme extension language.  A native spreadsheet and tools for
+         collaborative authoring are planned for later.
+      '';
+
+    homepage = http://texmacs.org/;
+
+    license = "GPLv2+";
+
+    maintainers = [ stdenv.lib.maintainers.ludo ];
+    platforms = stdenv.lib.platforms.gnu;  # arbitrary choice
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f1dcba4af5bc..b300f5b1751b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1595,6 +1595,11 @@ let
     inherit fetchurl stdenv ncurses;
   };
 
+  texmacs = import ../applications/office/texmacs {
+    inherit fetchurl stdenv texLive guile;
+    inherit (xlibs) libX11 libXext;
+  };
+
   ttf2pt1 = import ../tools/misc/ttf2pt1 {
     inherit fetchurl stdenv perl freetype;
   };
diff --git a/pkgs/top-level/guile-2-test.nix b/pkgs/top-level/guile-2-test.nix
index 2f221f69c097..7f41a664ab26 100644
--- a/pkgs/top-level/guile-2-test.nix
+++ b/pkgs/top-level/guile-2-test.nix
@@ -45,9 +45,9 @@ let
 in (mapTestOn {
   /* The package list below was obtained with:
 
-     cat top-level/all-packages.nix				\
-     | grep -B3 'guile[^=]*$'					\
-     | grep '^[[:blank:]]*[a-zA-Z0-9_]\+[[:blank:]]*='		\
+     cat top-level/all-packages.nix                             \
+     | grep -B3 'guile[^=]*$'                                   \
+     | grep '^[[:blank:]]*[a-zA-Z0-9_]\+[[:blank:]]*='          \
      | sed -es'/^[[:blank:]]*\(.\+\)[[:blank:]]*=.*$/\1= linux;/g'
 
      with some minor edits.
@@ -60,6 +60,7 @@ in (mapTestOn {
   lsh = linux;
   mailutils = linux;
   mcron = linux;
+  texmacs = linux;
   guileCairo = linux;
   guileGnome = linux;
   guileLib = linux;