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;