2021-08-02 11:14:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, nlohmann_json
|
|
|
|
, libtoxcore
|
|
|
|
, libsodium
|
|
|
|
, libcap
|
|
|
|
, zeromq
|
|
|
|
, systemd
|
|
|
|
}:
|
2016-05-29 22:07:54 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-29 18:24:13 +00:00
|
|
|
pname = "toxvpn";
|
2021-08-02 11:14:13 +00:00
|
|
|
version = "unstable-2019-09-09";
|
2016-05-29 22:07:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-02 11:14:13 +00:00
|
|
|
owner = "cleverca22";
|
|
|
|
repo = "toxvpn";
|
|
|
|
rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a";
|
2019-09-09 17:12:48 +00:00
|
|
|
sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb";
|
2016-05-29 22:07:54 +00:00
|
|
|
};
|
|
|
|
|
2017-06-25 23:17:20 +00:00
|
|
|
buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
|
2021-08-02 11:14:13 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [ libcap systemd ];
|
2018-04-19 10:21:25 +00:00
|
|
|
|
2017-02-14 06:59:59 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-05-29 22:07:54 +00:00
|
|
|
|
2022-10-06 16:38:53 +00:00
|
|
|
cmakeFlags = lib.optionals stdenv.isLinux [ "-DSYSTEMD=1" ];
|
2016-05-29 22:07:54 +00:00
|
|
|
|
2017-06-25 23:17:20 +00:00
|
|
|
postInstall = "$out/bin/toxvpn -h";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-29 22:07:54 +00:00
|
|
|
description = "A powerful tool that allows one to make tunneled point to point connections over Tox";
|
2021-08-02 11:14:13 +00:00
|
|
|
homepage = "https://github.com/cleverca22/toxvpn";
|
|
|
|
license = licenses.gpl3;
|
2019-09-09 17:12:48 +00:00
|
|
|
maintainers = with maintainers; [ cleverca22 obadz toonn ];
|
2021-08-02 11:14:13 +00:00
|
|
|
platforms = platforms.unix;
|
2016-05-29 22:07:54 +00:00
|
|
|
};
|
|
|
|
}
|