3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-mra/default.nix

36 lines
818 B
Nix
Raw Normal View History

{ lib, stdenv, fetchgit, pkg-config, pidgin } :
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;
src = fetchgit {
url = "https://github.com/dreadatour/pidgin-mra";
2019-09-09 00:38:31 +01:00
rev = version;
sha256 = "1adq57g11kw7bfpivyvfk3nlpjkc8raiw4bzn3gn4nx3m0wl99vw";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pidgin ];
2018-12-21 20:46:15 +00:00
postPatch = ''
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"
];
meta = {
homepage = "https://github.com/dreadatour/pidgin-mra";
description = "Mail.ru Agent plugin for Pidgin / libpurple";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};
}