3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/toxic/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, libsodium, ncurses, curl
, libtoxcore, openal, libvpx, freealut, libconfig, pkg-config, libopus
2019-05-22 12:03:39 +01:00
, qrencode, gdk-pixbuf, libnotify }:
stdenv.mkDerivation rec {
pname = "toxic";
2021-08-19 19:56:01 +01:00
version = "0.11.1";
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=";
};
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)"];
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
];
nativeBuildInputs = [ pkg-config libconfig ];
meta = with lib; {
description = "Reference CLI for Tox";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}