2015-07-26 00:19:44 -07:00
|
|
|
{ stdenv, fetchgit, pkgconfig, pidgin } :
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "54b2992";
|
|
|
|
in
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "pidgin-mra";
|
|
|
|
inherit version;
|
2015-07-26 00:19:44 -07:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/dreadatour/pidgin-mra";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2016-06-02 04:26:44 -07:00
|
|
|
sha256 = "1adq57g11kw7bfpivyvfk3nlpjkc8raiw4bzn3gn4nx3m0wl99vw";
|
2015-07-26 00:19:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ pidgin ];
|
|
|
|
|
2018-12-21 12:46:15 -08:00
|
|
|
postPatch = ''
|
2015-07-26 00:19:44 -07:00
|
|
|
sed -i 's|-I/usr/include/libpurple|$(shell pkg-config --cflags purple)|' Makefile
|
|
|
|
'';
|
|
|
|
|
2018-12-21 12:46:15 -08:00
|
|
|
makeFlags = [
|
|
|
|
"DESTDIR=/"
|
|
|
|
"LIBDIR=${placeholder "out"}/lib"
|
|
|
|
"DATADIR=${placeholder "out"}/share"
|
|
|
|
];
|
|
|
|
|
2015-07-26 00:19:44 -07:00
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/dreadatour/pidgin-mra";
|
2015-07-26 00:19:44 -07:00
|
|
|
description = "Mail.ru Agent plugin for Pidgin / libpurple";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-07-26 00:19:44 -07:00
|
|
|
};
|
|
|
|
}
|