2016-07-31 18:00:28 +02:00
|
|
|
{ stdenv, fetchFromGitHub, libsodium, ncurses, curl
|
2017-02-14 07:59:30 +01:00
|
|
|
, libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig, libopus
|
|
|
|
, libqrencode, gdk_pixbuf, libnotify }:
|
2013-10-11 21:42:42 +02:00
|
|
|
|
2014-12-04 02:47:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-14 07:59:30 +01:00
|
|
|
name = "toxic-${version}";
|
|
|
|
version = "0.7.2";
|
2013-10-11 21:42:42 +02:00
|
|
|
|
2014-12-04 02:47:32 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-02-14 07:59:30 +01:00
|
|
|
owner = "Tox";
|
|
|
|
repo = "toxic";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kws6bx5va1wc0k6pqihrla91vicxk4zqghvxiylgfbjr1jnkvwc";
|
2013-10-11 21:42:42 +02:00
|
|
|
};
|
|
|
|
|
2017-02-14 07:59:30 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)"];
|
|
|
|
installFlags = [ "PREFIX=$(out)"];
|
2013-10-11 21:42:42 +02:00
|
|
|
|
2014-07-28 20:43:53 +02:00
|
|
|
buildInputs = [
|
2017-02-14 07:59:30 +01:00
|
|
|
libtoxcore libsodium ncurses curl gdk_pixbuf libnotify
|
2014-09-23 17:58:56 +02:00
|
|
|
] ++ stdenv.lib.optionals (!stdenv.isArm) [
|
2017-02-14 07:59:30 +01:00
|
|
|
openal libopus libvpx freealut libqrencode
|
2013-10-11 21:42:42 +02:00
|
|
|
];
|
2017-02-14 07:59:30 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig libconfig ];
|
2013-10-11 21:42:42 +02:00
|
|
|
|
2014-12-04 02:47:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-11 21:42:42 +02:00
|
|
|
description = "Reference CLI for Tox";
|
2014-12-04 02:47:32 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ viric jgeerds ];
|
2017-09-12 13:27:23 +02:00
|
|
|
platforms = platforms.linux;
|
2013-10-11 21:42:42 +02:00
|
|
|
};
|
|
|
|
}
|