nixpkgs/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-mra/default.nix
Artjom Vejsel 5b527968bd pidgin-mra: init at 54b2992 (close #8996)
@vcunat made pkgconfig dependency explicit.
2015-07-26 13:45:27 +02:00

31 lines
738 B
Nix

{ stdenv, fetchgit, pkgconfig, pidgin } :
let
version = "54b2992";
in
stdenv.mkDerivation rec {
name = "pidgin-mra-${version}";
src = fetchgit {
url = "https://github.com/dreadatour/pidgin-mra";
rev = "${version}";
sha256 = "1nhfx9gi5lhh2xjr9rw600bb53ly2nwiqq422vc0f297qkm1q9y0";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pidgin ];
preConfigure = ''
sed -i 's|-I/usr/include/libpurple|$(shell pkg-config --cflags purple)|' Makefile
export DESTDIR=$out
export LIBDIR=/lib
export DATADIR=/share
'';
meta = {
homepage = https://github.com/dreadatour/pidgin-mra;
description = "Mail.ru Agent plugin for Pidgin / libpurple";
license = stdenv.lib.licenses.gpl2;
};
}