2017-02-14 06:59:59 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, lib
|
|
|
|
, libtoxcore, jsoncpp, libsodium, systemd, libcap }:
|
2016-05-29 23:07:54 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2017-02-14 06:59:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "toxvpn-${version}";
|
|
|
|
version = "20161230";
|
2016-05-29 23:07:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cleverca22";
|
|
|
|
repo = "toxvpn";
|
2017-02-14 06:59:59 +00:00
|
|
|
rev = "4b7498a5fae680484cb5779ac01fb08ad3089bdd";
|
|
|
|
sha256 = "0bazdspiym9xyzms7pd6i1f2gph13rnf764nm3jc27fbfwmc98rp";
|
2016-05-29 23:07:54 +01:00
|
|
|
};
|
|
|
|
|
2017-02-14 06:59:59 +00:00
|
|
|
buildInputs = [ libtoxcore jsoncpp libsodium libcap ] ++ optional stdenv.isLinux systemd;
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-05-29 23:07:54 +01:00
|
|
|
|
2017-02-14 06:59:59 +00:00
|
|
|
cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ];
|
2016-05-29 23:07:54 +01:00
|
|
|
|
2016-05-30 14:23:25 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-05-29 23:07:54 +01:00
|
|
|
description = "A powerful tool that allows one to make tunneled point to point connections over Tox";
|
|
|
|
homepage = https://github.com/cleverca22/toxvpn;
|
|
|
|
license = licenses.gpl3;
|
2016-05-30 14:23:25 +01:00
|
|
|
maintainers = with maintainers; [ cleverca22 obadz ];
|
2016-05-29 23:07:54 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|