2022-09-27 22:46:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libsodium, ncurses, curl
|
2021-01-17 02:09:27 +00:00
|
|
|
, libtoxcore, openal, libvpx, freealut, libconfig, pkg-config, libopus
|
2019-05-22 11:03:39 +00:00
|
|
|
, qrencode, gdk-pixbuf, libnotify }:
|
2013-10-11 19:42:42 +00:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "toxic";
|
2024-03-31 08:36:36 +00:00
|
|
|
version = "0.15.1";
|
2013-10-11 19:42:42 +00:00
|
|
|
|
2014-12-04 01:47:32 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-03-31 08:36:36 +00:00
|
|
|
owner = "TokTok";
|
2017-02-14 06:59:30 +00:00
|
|
|
repo = "toxic";
|
|
|
|
rev = "v${version}";
|
2024-03-31 08:36:36 +00:00
|
|
|
sha256 = "sha256-+nOjlQED2pbYwGV6IGeKK1pymBSrDVWCWKjZ42vib7E=";
|
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 = [
|
2019-05-22 11:03:39 +00: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 19:42:42 +00:00
|
|
|
];
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config libconfig ];
|
2013-10-11 19:42:42 +00:00
|
|
|
|
2024-03-31 08:36:36 +00:00
|
|
|
meta = src.meta // {
|
2013-10-11 19:42:42 +00:00
|
|
|
description = "Reference CLI for Tox";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "toxic";
|
2024-03-31 08:36:36 +00:00
|
|
|
homepage = "https://github.com/TokTok/toxic";
|
2024-03-31 22:10:33 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
2024-03-31 08:36:36 +00:00
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
platforms = lib.platforms.linux;
|
2013-10-11 19:42:42 +00:00
|
|
|
};
|
|
|
|
}
|