2013-10-11 20:32:36 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses
|
|
|
|
, libconfig, pkgconfig }:
|
|
|
|
|
|
|
|
let
|
2014-07-28 19:21:16 +01:00
|
|
|
version = "e1158be5a6";
|
|
|
|
date = "20140728";
|
2013-10-11 20:32:36 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tox-core-${date}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-07-28 19:21:16 +01:00
|
|
|
url = "https://github.com/irungentoo/toxcore/tarball/${version}";
|
2013-10-11 20:32:36 +01:00
|
|
|
name = "${name}.tar.gz";
|
2014-07-28 19:21:16 +01:00
|
|
|
sha256 = "1rsh1pbwvngsx5slmd6608b1zqs3jvq70bjr9zyziap9vxka3z1v";
|
2013-10-11 20:32:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoreconf -i
|
|
|
|
'';
|
|
|
|
|
2014-07-28 19:21:16 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-libsodium-headers=${libsodium}/include"
|
|
|
|
"--with-libsodium-libs=${libsodium}/lib"
|
|
|
|
"--enable-ntox"
|
|
|
|
];
|
2013-10-11 20:32:36 +01:00
|
|
|
|
2014-07-28 19:21:16 +01:00
|
|
|
buildInputs = [
|
|
|
|
autoconf libtool automake libsodium ncurses libconfig pkgconfig
|
|
|
|
];
|
2013-10-11 20:32:36 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "P2P FOSS instant messaging application aimed to replace Skype with crypto";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2013-10-11 20:32:36 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|