2016-01-18 00:04:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libtoxcore, pidgin, autoreconfHook, libsodium }:
|
2013-10-12 15:32:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-14 07:58:28 +01:00
|
|
|
name = "tox-prpl-${version}";
|
|
|
|
version = "0.5.1";
|
2013-10-12 15:32:09 +02:00
|
|
|
|
2014-12-04 11:02:27 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-02-14 07:58:28 +01:00
|
|
|
owner = "jin-eld";
|
|
|
|
repo = "tox-prpl";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ms367l2f7x83k407c93bmhpyc820f1css61fh2gx4jq13cxqq3p";
|
2013-10-12 15:32:09 +02:00
|
|
|
};
|
|
|
|
|
2013-10-12 18:53:59 +02:00
|
|
|
NIX_LDFLAGS = "-lssp -lsodium";
|
|
|
|
|
|
|
|
postInstall = "mv $out/lib/purple-2 $out/lib/pidgin";
|
|
|
|
|
2017-02-14 07:58:28 +01:00
|
|
|
buildInputs = [ libtoxcore pidgin libsodium ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2013-10-12 15:32:09 +02:00
|
|
|
|
2017-02-14 07:58:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-12 15:32:09 +02:00
|
|
|
homepage = http://tox.dhs.org/;
|
|
|
|
description = "Tox plugin for Pidgin / libpurple";
|
2017-02-14 07:58:28 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2013-10-12 15:32:09 +02:00
|
|
|
};
|
|
|
|
}
|