blob: 2c6a0c5e7e64a9da8f10f5db04d43d0330fa4576 (
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
|
{ lib, stdenv, fetchFromGitHub, pkg-config, pidgin } :
stdenv.mkDerivation rec {
pname = "pidgin-mra";
version = "unstable-2014-07-08";
src = fetchFromGitHub {
owner = "dreadatour";
repo = "pidgin-mra";
rev = "54b299266265cde800289b2d51f13b81f6bf379c";
sha256 = "sha256-fKdEOaijW2LfsH8RHlVGbMpL7Zhu+x2vW4fPEN4puKk=";
};
nativeBuildInputs = [ pkg-config ];
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 = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};
}
|