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

34 lines
904 B
Nix
Raw Normal View History

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