blob: bb51adfbfee0e4f29568a972c5506e5bf44bd01f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ stdenv, fetchgit, pkgconfig, pidgin } :
let
version = "54b2992";
in
stdenv.mkDerivation {
pname = "pidgin-mra";
inherit version;
src = fetchgit {
url = "https://github.com/dreadatour/pidgin-mra";
rev = "${version}";
sha256 = "1adq57g11kw7bfpivyvfk3nlpjkc8raiw4bzn3gn4nx3m0wl99vw";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pidgin ];
postPatch = ''
sed -i 's|-I/usr/include/libpurple|$(shell pkg-config --cflags purple)|' Makefile
'';
makeFlags = [
"DESTDIR=/"
"LIBDIR=${placeholder "out"}/lib"
"DATADIR=${placeholder "out"}/share"
];
meta = {
homepage = https://github.com/dreadatour/pidgin-mra;
description = "Mail.ru Agent plugin for Pidgin / libpurple";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
};
}
|