2013-10-11 21:42:42 +02:00
|
|
|
{ stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses
|
2014-07-28 20:43:53 +02:00
|
|
|
, libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig }:
|
2013-10-11 21:42:42 +02:00
|
|
|
|
|
|
|
let
|
2014-09-29 10:26:28 +02:00
|
|
|
version = "0.5.1";
|
2014-08-25 17:13:50 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "toxic-${version}";
|
2013-10-11 21:42:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-25 17:13:50 +02:00
|
|
|
url = "https://github.com/Tox/toxic/archive/v${version}.tar.gz";
|
2014-09-29 10:26:28 +02:00
|
|
|
sha256 = "0zzfgwm17a4xcy9l0ll2pksp45mz6f4s3isdrgjpw1xibv9xnzcm";
|
2013-10-11 21:42:42 +02:00
|
|
|
};
|
|
|
|
|
2014-09-23 17:59:51 +02:00
|
|
|
makeFlags = [ "-Cbuild" "VERSION=${version}" "PREFIX=$(out)" ];
|
2014-07-28 20:43:53 +02:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2013-10-11 21:42:42 +02:00
|
|
|
|
2014-07-28 20:43:53 +02:00
|
|
|
buildInputs = [
|
2014-09-23 17:58:56 +02:00
|
|
|
autoconf libtool automake libtoxcore libsodium ncurses
|
|
|
|
libconfig pkgconfig
|
|
|
|
] ++ stdenv.lib.optionals (!stdenv.isArm) [
|
|
|
|
openal libvpx freealut
|
2013-10-11 21:42:42 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Reference CLI for Tox";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2013-10-11 21:42:42 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|