15 version = "unstable-2024-08-21";
17 src = fetchFromGitHub {
20 rev = "c727451eb871b43855b825ff93dc48fa0d3320b6";
21 sha256 = "sha256-UncU0cpoyy9Z0TCChGmaHpyhW9ctz32gU7n3hgpOEwU=";
24 buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
25 ++ lib.optionals stdenv.hostPlatform.isLinux [ libcap systemd ];
27 nativeBuildInputs = [ cmake ];
29 cmakeFlags = lib.optionals stdenv.hostPlatform.isLinux [ "-DSYSTEMD=1" ];
31 postInstall = "cp ${./bootstrap.json} $out/share/toxvpn/";
33 installCheckPhase = "$out/bin/toxvpn -h";
34 doInstallCheck = true;
37 description = "Powerful tool that allows one to make tunneled point to point connections over Tox";
38 homepage = "https://github.com/cleverca22/toxvpn";
39 license = licenses.gpl3;
40 maintainers = with maintainers; [ cleverca22 craigem obadz toonn ];
41 platforms = platforms.unix;