2016-07-31 16:00:28 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libsodium, ncurses, curl
|
2017-02-14 06:59:30 +00:00
|
|
|
, libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig, libopus
|
|
|
|
, libqrencode, gdk_pixbuf, libnotify }:
|
2013-10-11 19:42:42 +00:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-14 06:59:30 +00:00
|
|
|
name = "toxic-${version}";
|
|
|
|
version = "0.7.2";
|
2013-10-11 19:42:42 +00:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
src = fetchFromGitHub {
|
2017-02-14 06:59:30 +00:00
|
|
|
owner = "Tox";
|
|
|
|
repo = "toxic";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kws6bx5va1wc0k6pqihrla91vicxk4zqghvxiylgfbjr1jnkvwc";
|
2013-10-11 19:42:42 +00:00
|
|
|
};
|
|
|
|
|
2017-02-14 06:59:30 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)"];
|
|
|
|
installFlags = [ "PREFIX=$(out)"];
|
2013-10-11 19:42:42 +00:00
|
|
|
|
2014-07-28 18:43:53 +00:00
|
|
|
buildInputs = [
|
2017-02-14 06:59:30 +00:00
|
|
|
libtoxcore libsodium ncurses curl gdk_pixbuf libnotify
|
2014-09-23 15:58:56 +00:00
|
|
|
] ++ stdenv.lib.optionals (!stdenv.isArm) [
|
2017-02-14 06:59:30 +00:00
|
|
|
openal libopus libvpx freealut libqrencode
|
2013-10-11 19:42:42 +00:00
|
|
|
];
|
2017-02-14 06:59:30 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig libconfig ];
|
2013-10-11 19:42:42 +00:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-11 19:42:42 +00: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 19:42:42 +00:00
|
|
|
};
|
|
|
|
}
|