2016-07-31 17:00:28 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libsodium, ncurses, curl
|
|
|
|
, libtoxcore-dev, openal, libvpx, freealut, libconfig, pkgconfig
|
|
|
|
, libqrencode }:
|
2013-10-11 20:42:42 +01:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-31 17:00:28 +01:00
|
|
|
name = "toxic-dev-20160728";
|
2013-10-11 20:42:42 +01:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tox";
|
|
|
|
repo = "toxic";
|
2016-07-31 17:00:28 +01:00
|
|
|
rev = "cb21672600206423c844306a84f8b122e534c348";
|
|
|
|
sha256 = "1nq1xnbyjfrk8jrjvk5sli1bm3i9r8b4m8f4xgmiz68mx1r3fn5k";
|
2013-10-11 20:42:42 +01:00
|
|
|
};
|
|
|
|
|
2016-07-31 17:00:28 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2014-07-28 19:43:53 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2013-10-11 20:42:42 +01:00
|
|
|
|
2016-07-31 17:00:28 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig libconfig ];
|
2014-07-28 19:43:53 +01:00
|
|
|
buildInputs = [
|
2016-12-13 21:36:12 +00:00
|
|
|
libtoxcore-dev libsodium ncurses curl
|
2014-09-23 16:58:56 +01:00
|
|
|
] ++ stdenv.lib.optionals (!stdenv.isArm) [
|
2016-12-13 21:36:12 +00:00
|
|
|
openal libvpx freealut libqrencode
|
2013-10-11 20:42:42 +01:00
|
|
|
];
|
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-11 20:42:42 +01:00
|
|
|
description = "Reference CLI for Tox";
|
2014-12-04 01:47:32 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ viric jgeerds ];
|
|
|
|
platforms = platforms.all;
|
2013-10-11 20:42:42 +01:00
|
|
|
};
|
|
|
|
}
|