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

37 lines
851 B
Nix
Raw Normal View History

2017-12-01 00:00:00 +00:00
{ stdenv, fetchgit, libtoxcore
, 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";
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";
};
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"}
'';
2017-12-01 00:00:00 +00:00
makeFlags = [ "PREFIX=$(out)" ];
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;
};
}