2016-09-11 22:24:51 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, pidgin, texLive, imagemagick, glib, gtk2 }:
|
2014-11-02 01:19:39 +00:00
|
|
|
|
|
|
|
let version = "1.5.0";
|
|
|
|
in
|
2007-07-07 20:22:28 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-11-02 01:19:39 +00:00
|
|
|
name = "pidgin-latex-${version}";
|
2007-07-07 20:22:28 +01:00
|
|
|
|
2009-03-03 13:27:40 +00:00
|
|
|
src = fetchurl {
|
2014-11-02 01:19:39 +00:00
|
|
|
url = "mirror://sourceforge/pidgin-latex/pidgin-latex_${version}.tar.bz2";
|
|
|
|
sha256 = "9c850aee90d7e59de834f83e09fa6e3e51b123f06e265ead70957608ada95441";
|
2009-03-03 13:27:40 +00:00
|
|
|
};
|
2007-07-07 20:22:28 +01:00
|
|
|
|
2014-11-02 01:19:39 +00:00
|
|
|
nativeBuildInputs = [pkgconfig];
|
2016-09-11 22:24:51 +01:00
|
|
|
buildInputs = [gtk2 glib pidgin];
|
2014-11-02 01:19:39 +00:00
|
|
|
makeFlags = "PREFIX=$(out)";
|
2007-07-07 20:22:28 +01:00
|
|
|
|
2014-11-02 01:19:39 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -e 's/-Wl,-soname//' -i Makefile
|
2009-03-03 13:27:40 +00:00
|
|
|
'';
|
2007-07-07 20:22:28 +01:00
|
|
|
|
2014-11-02 01:19:39 +00:00
|
|
|
passthru = {
|
2016-08-22 23:06:51 +01:00
|
|
|
wrapArgs = "--prefix PATH ':' ${stdenv.lib.makeBinPath [ texLive imagemagick ]}";
|
2014-11-02 01:19:39 +00:00
|
|
|
};
|
2007-07-07 20:22:28 +01:00
|
|
|
|
2014-11-02 01:19:39 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-22 19:50:04 +01:00
|
|
|
homepage = https://sourceforge.net/projects/pidgin-latex/;
|
2014-11-02 01:19:39 +00:00
|
|
|
description = "LaTeX rendering plugin for Pidgin IM";
|
2015-04-21 17:05:19 +01:00
|
|
|
license = licenses.gpl2;
|
2014-11-02 01:19:39 +00:00
|
|
|
platforms = platforms.linux;
|
2015-05-14 18:09:10 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2007-07-07 20:22:28 +01:00
|
|
|
};
|
|
|
|
}
|