diff --git a/pkgs/applications/networking/instant-messengers/pidgin-latex/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-latex/default.nix new file mode 100644 index 00000000000..5abfb97e3f0 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin-latex/default.nix @@ -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. +"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2ac04cadf31..9dac7220e76 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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;