Added pidgin-latex.

svn path=/nixpkgs/trunk/; revision=8957
This commit is contained in:
Michael Raskin 2007-07-07 19:22:28 +00:00
parent 1253a722f5
commit ee4bc350af
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{stdenv, fetchurl, pidgin, imagemagick, ghostscript,
pkgconfig, glib, gtk, tetex}:
stdenv.mkDerivation {
name = "pidgin-latex";
src = fetchurl {
url = http://tapas.affenbande.org/pidgin-latex.tgz;
md5 = "12509b38f7a92bb22d565cc73cbd83c7";
};
preBuild = "sed -e '/^PREFIX/d' -i Makefile ; sed -e 's@/bin/bash@/var/run/current-system/sw&@; s@/dev/stdin@/proc/self/fd/0@' -i pidgin-latex-convert.sh;";
makeFlags="PREFIX=\$(out)";
preInstall="mkdir -p \${out}/lib/pidgin \${out}/bin";
postInstall = "mkdir -p \${out}/share/pidgin-latex;
ln -s \${out}/lib/pidgin/pidgin-latex.so \${out}/share/pidgin-latex/";
buildInputs = [pidgin imagemagick ghostscript pkgconfig glib gtk tetex];
meta = {
description = "
Pidgin-LaTeX is a pidgin plugin that cuts everything inside \$\$ .. \$\$
and feeds to LaTeX. A bit of conversion (automated, of course) - and you
see every formula that occurs in conversation in pretty graphical form.
There are some glitches - when a formula fails to compile, you can see
just previous formula..
Enable it for user by linking to ~/.purple/plugins - from
sw/share/pidgin-latex , not from store of course.
";
};
}

View File

@ -2856,6 +2856,11 @@ rec {
inherit (xlibs) libXScrnSaver;
};
pidginlatex = import ../applications/networking/instant-messengers/pidgin-latex {
inherit fetchurl stdenv tetex pkgconfig imagemagick ghostscript pidgin;
inherit (gtkLibs) glib gtk;
};
gimp = import ../applications/graphics/gimp {
inherit fetchurl stdenv pkgconfig freetype fontconfig
libtiff libjpeg libpng libexif zlib perl perlXMLParser python pygtk gettext;