2022-10-21 18:38:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libsodium, ncurses, curl
|
2021-02-05 17:12:51 +00:00
|
|
|
, libtoxcore, openal, libvpx, freealut, libconfig, pkg-config, libopus
|
2020-04-24 23:36:52 +00:00
|
|
|
, qrencode, gdk-pixbuf, libnotify }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "toxic";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.15.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-04-21 15:54:59 +00:00
|
|
|
owner = "TokTok";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "toxic";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-+nOjlQED2pbYwGV6IGeKK1pymBSrDVWCWKjZ42vib7E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)"];
|
|
|
|
installFlags = [ "PREFIX=$(out)"];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libtoxcore libsodium ncurses curl gdk-pixbuf libnotify
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isAarch32) [
|
2020-04-24 23:36:52 +00:00
|
|
|
openal libopus libvpx freealut qrencode
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config libconfig ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = src.meta // {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Reference CLI for Tox";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "toxic";
|
|
|
|
homepage = "https://github.com/TokTok/toxic";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|