2016-07-31 17:00:28 +01: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 20:42:42 +01: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 20:42:42 +01: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 20:42:42 +01:00
|
|
|
};
|
|
|
|
|
2017-02-14 06:59:30 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)"];
|
|
|
|
installFlags = [ "PREFIX=$(out)"];
|
2013-10-11 20:42:42 +01:00
|
|
|
|
2014-07-28 19:43:53 +01:00
|
|
|
buildInputs = [
|
2017-02-14 06:59:30 +00:00
|
|
|
libtoxcore libsodium ncurses curl gdk_pixbuf libnotify
|
2014-09-23 16:58:56 +01:00
|
|
|
] ++ stdenv.lib.optionals (!stdenv.isArm) [
|
2017-02-14 06:59:30 +00:00
|
|
|
openal libopus libvpx freealut libqrencode
|
2013-10-11 20:42:42 +01:00
|
|
|
];
|
2017-02-14 06:59:30 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig libconfig ];
|
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
|
|
|
};
|
|
|
|
}
|