nixpkgs/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix

33 lines
886 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, pidgin, texLive, imagemagick, glib, gtk }:
let version = "1.5.0";
in
stdenv.mkDerivation {
name = "pidgin-latex-${version}";
src = fetchurl {
url = "mirror://sourceforge/pidgin-latex/pidgin-latex_${version}.tar.bz2";
sha256 = "9c850aee90d7e59de834f83e09fa6e3e51b123f06e265ead70957608ada95441";
};
nativeBuildInputs = [pkgconfig];
buildInputs = [gtk glib pidgin];
makeFlags = "PREFIX=$(out)";
postPatch = ''
sed -e 's/-Wl,-soname//' -i Makefile
'';
passthru = {
2016-08-22 23:06:51 +01:00
wrapArgs = "--prefix PATH ':' ${stdenv.lib.makeBinPath [ texLive imagemagick ]}";
};
meta = with stdenv.lib; {
homepage = http://sourceforge.net/projects/pidgin-latex/;
description = "LaTeX rendering plugin for Pidgin IM";
2015-04-21 17:05:19 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
};
}