nixpkgs/pkgs/applications/networking/instant-messengers/toxic/default.nix

33 lines
905 B
Nix
Raw Normal View History

2016-07-31 18:00:28 +02:00
{ stdenv, fetchFromGitHub, libsodium, ncurses, curl
2017-02-14 07:59:30 +01:00
, libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig, libopus
, libqrencode, gdk_pixbuf, libnotify }:
stdenv.mkDerivation rec {
2017-02-14 07:59:30 +01:00
name = "toxic-${version}";
version = "0.7.2";
src = fetchFromGitHub {
2017-02-14 07:59:30 +01:00
owner = "Tox";
repo = "toxic";
rev = "v${version}";
sha256 = "1kws6bx5va1wc0k6pqihrla91vicxk4zqghvxiylgfbjr1jnkvwc";
};
2017-02-14 07:59:30 +01:00
makeFlags = [ "PREFIX=$(out)"];
installFlags = [ "PREFIX=$(out)"];
buildInputs = [
2017-02-14 07:59:30 +01:00
libtoxcore libsodium ncurses curl gdk_pixbuf libnotify
] ++ stdenv.lib.optionals (!stdenv.isArm) [
2017-02-14 07:59:30 +01:00
openal libopus libvpx freealut libqrencode
];
2017-02-14 07:59:30 +01:00
nativeBuildInputs = [ pkgconfig libconfig ];
meta = with stdenv.lib; {
description = "Reference CLI for Tox";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ viric jgeerds ];
platforms = platforms.linux;
};
}