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