nixpkgs-suyu/pkgs/development/libraries/libtoxcore/default.nix

40 lines
966 B
Nix
Raw Normal View History

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