2017-12-01 00:00:00 +00:00
|
|
|
{ stdenv, fetchgit, libtoxcore
|
2015-02-07 14:33:18 +00:00
|
|
|
, conf ? null }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-12-01 00:00:00 +00:00
|
|
|
let
|
|
|
|
configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
|
|
|
|
|
2018-04-19 11:19:48 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "ratox-0.4.20180303";
|
2015-02-07 14:33:18 +00:00
|
|
|
|
2017-12-01 00:00:00 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.2f30.org/ratox.git";
|
2018-04-19 11:19:48 +01:00
|
|
|
rev = "269f7f97fb374a8f9c0b82195c21de15b81ddbbb";
|
|
|
|
sha256 = "0bpn37h8jvsqd66fkba8ky42nydc8acawa5x31yxqlxc8mc66k74";
|
2015-02-07 14:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libtoxcore ];
|
|
|
|
|
2018-04-19 11:19:48 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace config.mk \
|
|
|
|
--replace '-lsodium -lopus -lvpx ' ""
|
|
|
|
|
|
|
|
${optionalString (conf!=null) "cp ${configFile} config.def.h"}
|
|
|
|
'';
|
2015-02-07 14:33:18 +00:00
|
|
|
|
2017-12-01 00:00:00 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2015-02-07 14:33:18 +00:00
|
|
|
|
2017-12-01 00:00:00 +00:00
|
|
|
meta = {
|
|
|
|
description = "FIFO based tox client";
|
|
|
|
homepage = http://ratox.2f30.org/;
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-02-07 14:33:18 +00:00
|
|
|
}
|