1 { lib, fetchurl, tex, extraFonts, chineseFonts, japaneseFonts, koreanFonts }:
3 extraFontsSrc = fetchurl {
4 url = "ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-extra-fonts-1.0-noarch.tar.gz";
5 sha256 = "0hylgjmd95y9yahbblmawkkw0i71vb145xxv2xqrmff81301n6k7";
8 fullFontsSrc = fetchurl {
9 url = "ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-windows-fonts-1.0-noarch.tar.gz";
10 sha256 = "1yxzjpqpm7kvx0ly5jmfpzlfhsh41b0ibn1v84qv6xy73r2vis2f";
13 chineseFontsSrc = fetchurl {
14 url = "ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-chinese-fonts.tar.gz";
15 sha256 = "0yprqjsx5mfsaxr525mcm3xqwcadzxp14njm38ir1325baada2fp";
18 japaneseFontsSrc = fetchurl {
19 url = "ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-japanese-fonts.tar.gz";
20 sha256 = "1dn6zvsa7gk59d61xicwpbapab3rm6kz48rp5w1bhmihxixw21jn";
23 koreanFontsSrc = fetchurl {
24 url = "ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-korean-fonts.tar.gz";
25 sha256 = "07axg57mqm3jbnm4lawx0h3r2h56xv9acwzjppryfklw4c27f5hh";
28 postPatch = (if tex == null then ''
29 gunzip < ${fullFontsSrc} | (cd TeXmacs && tar xvf -)
30 '' else lib.optionalString extraFonts ''
31 gunzip < ${extraFontsSrc} | (cd TeXmacs && tar xvf -)
33 (lib.optionalString chineseFonts ''
34 gunzip < ${chineseFontsSrc} | (cd TeXmacs && tar xvf -)
36 (lib.optionalString japaneseFonts ''
37 gunzip < ${japaneseFontsSrc} | (cd TeXmacs && tar xvf -)
39 (lib.optionalString koreanFonts ''
40 gunzip < ${koreanFontsSrc} | (cd TeXmacs && tar xvf -)
45 description = "WYSIWYW editing platform with special features for scientists";
47 '' GNU TeXmacs is a free wysiwyw (what you see is what you want)
48 editing platform with special features for scientists. The software
49 aims to provide a unified and user friendly framework for editing
50 structured documents with different types of content (text,
51 graphics, mathematics, interactive content, etc.). The rendering
52 engine uses high-quality typesetting algorithms so as to produce
53 professionally looking documents, which can either be printed out or
54 presented from a laptop.
56 The software includes a text editor with support for mathematical
57 formulas, a small technical picture editor and a tool for making
58 presentations from a laptop. Moreover, TeXmacs can be used as an
59 interface for many external systems for computer algebra, numerical
60 analysis, statistics, etc. New presentation styles can be written
61 by the user and new features can be added to the editor using the
62 Scheme extension language. A native spreadsheet and tools for
63 collaborative authoring are planned for later.
65 homepage = "http://texmacs.org/";
66 license = lib.licenses.gpl2Plus;