2021-11-04 09:48:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, libsodium, ncurses, curl
|
2021-01-17 02:09:27 +00:00
|
|
|
, libtoxcore, openal, libvpx, freealut, libconfig, pkg-config, libopus
|
2019-05-22 12:03:39 +01:00
|
|
|
, qrencode, gdk-pixbuf, libnotify }:
|
2013-10-11 20:42:42 +01:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "toxic";
|
2021-08-19 19:56:01 +01:00
|
|
|
version = "0.11.1";
|
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}";
|
2021-08-19 19:56:01 +01:00
|
|
|
sha256 = "sha256-5jLXXI+IMrYa7ZtdMjJrah1zB5TJ3GdHfvcMd1TYE4E=";
|
2013-10-11 20:42:42 +01:00
|
|
|
};
|
|
|
|
|
2021-11-04 09:48:27 +00:00
|
|
|
patches = [
|
|
|
|
# Pending for upstream inclusion fix for ncurses-6.3 compatibility.
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://github.com/JFreegman/toxic/commit/41e93adbdbd56db065166af5a6676a7996e9e451.patch";
|
|
|
|
sha256 = "sha256-LYEseB5FmXFNifa1RZUxhkXeWlkEEMm3ASD55IoUPa0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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 = [
|
2019-05-22 12:03:39 +01:00
|
|
|
libtoxcore libsodium ncurses curl gdk-pixbuf libnotify
|
2021-01-15 05:42:41 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isAarch32) [
|
2019-01-01 16:19:07 +00:00
|
|
|
openal libopus libvpx freealut qrencode
|
2013-10-11 20:42:42 +01:00
|
|
|
];
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config libconfig ];
|
2013-10-11 20:42:42 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-12 12:27:23 +01:00
|
|
|
platforms = platforms.linux;
|
2013-10-11 20:42:42 +01:00
|
|
|
};
|
|
|
|
}
|