biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / ratox / default.nix
blob4a80071a6cea76856362c9332d34baf6cbde8c7f
1 { lib, stdenv, fetchgit, libtoxcore
2 , conf ? null }:
4 let
5   configFile = lib.optionalString (conf!=null) (builtins.toFile "config.h" conf);
7 in stdenv.mkDerivation {
8   pname = "ratox";
9   version = "0.4.20180303";
11   src = fetchgit {
12     url = "git://git.2f30.org/ratox.git";
13     rev = "269f7f97fb374a8f9c0b82195c21de15b81ddbbb";
14     sha256 = "0bpn37h8jvsqd66fkba8ky42nydc8acawa5x31yxqlxc8mc66k74";
15   };
17   buildInputs = [ libtoxcore ];
19   preConfigure = ''
20     substituteInPlace config.mk \
21       --replace '-lsodium -lopus -lvpx ' ""
23     ${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"}
24   '';
26   makeFlags = [ "PREFIX=$(out)" ];
28   meta = with lib; {
29     description = "FIFO based tox client";
30     mainProgram = "ratox";
31     homepage = "http://ratox.2f30.org/";
32     license = licenses.isc;
33     maintainers = with maintainers; [ ehmry ];
34     platforms = platforms.linux;
35   };