[Nix-dev] texmacs
roconnor at theorem.ca
roconnor at theorem.ca
Sat May 22 17:29:44 CEST 2010
Here is the relevent line for all-packages:
+ texmacs = import ../applications/editors/texmacs {
+ inherit stdenv fetchurl guile x11 which makeWrapper;
+ inherit (xlibs) xmodmap;
+ # include the following optional packages
+ inherit tetex ghostscriptX aspell;
+ extraFonts = true;
+ };
+
and here is the applications/editor/texmacs file:
{stdenv, fetchurl, guile, x11, xmodmap, which, makeWrapper,
tetex ? null,
aspell ? null,
ghostscriptX ? null,
extraFonts ? false,
chineseFonts ? false,
japaneseFonts ? false,
koreanFonts ? false }:
stdenv.mkDerivation rec {
name = "TeXmacs-1.0.7";
src = fetchurl {
url = "ftp://ftp.texmacs.org/pub/TeXmacs/targz/${name}-src.tar.gz";
sha256 = "1jdynapwc4fnp4ff71whq7l2jv0v3zwq2v2w463ppxm9cbi3bm5v";
};
extraFontsSrc = fetchurl {
url =
"ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-extra-fonts-1.0-noarch.tar.gz";
sha256 = "0hylgjmd95y9yahbblmawkkw0i71vb145xxv2xqrmff81301n6k7";
};
fullFontsSrc = fetchurl {
url =
"ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-windows-fonts-1.0-noarch.tar.gz";
sha256 = "1yxzjpqpm7kvx0ly5jmfpzlfhsh41b0ibn1v84qv6xy73r2vis2f";
};
chineseFontsSrc = fetchurl {
url =
"ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-chinese-fonts.tar.gz";
sha256 = "0yprqjsx5mfsaxr525mcm3xqwcadzxp14njm38ir1325baada2fp";
};
japaneseFontsSrc = fetchurl {
url =
"ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-japanese-fonts.tar.gz";
sha256 = "1dn6zvsa7gk59d61xicwpbapab3rm6kz48rp5w1bhmihxixw21jn";
};
koreanFontsSrc = fetchurl {
url =
"ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-korean-fonts.tar.gz";
sha256 = "07axg57mqm3jbnm4lawx0h3r2h56xv9acwzjppryfklw4c27f5hh";
};
buildInputs = [ guile x11 makeWrapper ];
patchPhase = (if tetex == null then ''
gunzip < $fullFontsSrc | (cd TeXmacs && tar xvf -)
'' else if extraFonts then ''
gunzip < $extraFontsSrc | (cd TeXmacs && tar xvf -)
'' else "") +
(if chineseFonts then ''
gunzip < $chineseFontsSrc | (cd TeXmacs && tar xvf -)
'' else "") +
(if japaneseFonts then ''
gunzip < $japaneseFontsSrc | (cd TeXmacs && tar xvf -)
'' else "") +
(if koreanFonts then ''
gunzip < $koreanFontsSrc | (cd TeXmacs && tar xvf -)
'' else "");
postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
(if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
(if aspell == null then "" else "${aspell}/bin:") +
(if tetex == null then "" else "${tetex}/bin:") +
"${xmodmap}/bin:${which}/bin";
meta = {
description = "GNU TeXmacs is a free wysiwyw editing platform with
special features for scientists.";
license = "GPL";
homepage = http://www.texmacs.org/;
};
}
On Sat, 22 May 2010, maggesi at math.unifi.it wrote:
> Ah, that would be great!
> Thank you,
> Marco
>
>
> Quoting roconnor at theorem.ca:
>
>> I have a completely different dervation for TeXmacs than the one in
>> nixpkgs. I could send that to you.
>>
>> On Sat, 22 May 2010, maggesi at math.unifi.it wrote:
>>
>>> Hi,
>>> does anybody uses texmacs on nixos?
>>> When I start texmacs I get the following error
>>>
>>> ~$ texmacs
>>>
>>> I could not open ecrm11 at 300
>>>
>>> Fatal error: Tex seems not to be installed properly in 'load_tex'
>>> See file : load_tex.cpp
>>>
>>> Does this mean that I have to install other packages (fonts or something
>>> else)?
>>>
>>> Thanks,
>>> Marco
>>>
>>> ----------------------------------------------------------------
>>> This message was sent using IMP, the Internet Messaging Program.
>>>
>>>
>>> _______________________________________________
>>> nix-dev mailing list
>>> nix-dev at cs.uu.nl
>>> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>>
>> --
>> Russell O'Connor <http://r6.ca/>
>> ``All talk about `theft,''' the general counsel of the American Graphophone
>> Company wrote, ``is the merest claptrap, for there exists no property in
>> ideas musical, literary or artistic, except as defined by statute.''
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
--
Russell O'Connor <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''
More information about the nix-dev
mailing list