3
0
Fork 0
forked from mirrors/nixpkgs

Moved pidgin-latex to TeXLive

svn path=/nixpkgs/trunk/; revision=11658
This commit is contained in:
Michael Raskin 2008-04-18 20:23:26 +00:00
parent f7d9bb93bf
commit 34460a0b56
2 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{stdenv, fetchurl, pidgin, imagemagick, ghostscript,
pkgconfig, glib, gtk, tetex}:
pkgconfig, glib, gtk, texLive}:
stdenv.mkDerivation {
name = "pidgin-latex";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
preBuild = "
sed -e '/^PREFIX/d' -i Makefile ;
sed -e 's@/usr/bin/latex@${tetex}/bin/pdflatex@g' -i pidgin-latex.h
sed -e 's@/usr/bin/latex@${texLive}/bin/pdflatex@g' -i pidgin-latex.h
sed -e 's@/usr/bin/convert@${imagemagick}/bin/convert@g' -i pidgin-latex.h
sed -e 's@.*convert_path.*@const gchar *convert = CONVERT_PATH;@'
sed -e 's@.*latex_path.*@const gchar *convert = LATEX_PATH;@'
@ -25,7 +25,7 @@ stdenv.mkDerivation {
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];
buildInputs = [pidgin imagemagick ghostscript pkgconfig glib gtk texLive];
meta = {
description = "

View file

@ -5198,11 +5198,12 @@ let pkgs = rec {
inherit (xlibs) libXScrnSaver;
};
pidginlatex = import ../applications/networking/instant-messengers/pidgin-plugins/pidgin-latex {
inherit fetchurl stdenv tetex pkgconfig ghostscript pidgin;
pidginlatexFun = lib.sumArgs (import ../applications/networking/instant-messengers/pidgin-plugins/pidgin-latex) {
inherit fetchurl stdenv pkgconfig ghostscript pidgin texLive;
imagemagick = imagemagickBig;
inherit (gtkLibs) glib gtk;
};
pidginlatex = pidginlatexFun null;
pidginotr = import ../applications/networking/instant-messengers/pidgin-plugins/otr {
inherit fetchurl stdenv libotr pidgin;