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