diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2007-08-17 09:31:09 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2007-08-17 09:31:09 +0000 |
commit | 282c064669042baf99ea0086a79d3c797fef5a04 (patch) | |
tree | 933650f3856c070e8002ebbcf06fcf54d48b0418 /pkgs/applications/networking/instant-messengers/pidgin-plugins | |
parent | c8c3eb7c18a854042c45f645a14569f9c904bf43 (diff) |
Moved pidgin-latex to pidgin-plugins, added aggregatable link for pidgin-otr.
svn path=/nixpkgs/trunk/; revision=9147
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/pidgin-plugins')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/pidgin-plugins/otr/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/otr/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/otr/default.nix index d171cfebf92b2..cde1cb2534b22 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin-plugins/otr/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/otr/default.nix @@ -11,5 +11,7 @@ stdenv.mkDerivation { description = "OTR plugin for Pidgin IM."; }; + postInstall = "ln -s \$out/lib/pidgin \$out/share/pidgin-otr"; + buildInputs = [libotr pidgin]; } diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix new file mode 100644 index 0000000000000..9358d4c528a15 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix @@ -0,0 +1,35 @@ +{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; + sed -e 's@^latex.*@& ; if let \$?; then rm /tmp/pidgin-latex-tmp.png; exit 1; fi; @' -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. +"; + }; +} |