nixpkgs/pkgs/tools/networking/toxvpn/default.nix

34 lines
988 B
Nix
Raw Normal View History

2017-06-26 00:17:20 +01:00
{ stdenv, fetchFromGitHub, cmake, nlohmann_json,
2018-04-19 11:21:25 +01:00
libtoxcore, libsodium, libcap, zeromq,
systemd ? null }:
2017-06-26 00:17:20 +01:00
with stdenv.lib;
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
name = "toxvpn-2019-09-09";
src = fetchFromGitHub {
owner = "cleverca22";
repo = "toxvpn";
rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a";
sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb";
};
2017-06-26 00:17:20 +01:00
buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
2018-04-19 11:21:25 +01:00
++ optionals stdenv.isLinux [ libcap systemd ];
2017-02-14 06:59:59 +00:00
nativeBuildInputs = [ cmake ];
2017-02-14 06:59:59 +00:00
cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ];
2017-06-26 00:17:20 +01:00
postInstall = "$out/bin/toxvpn -h";
meta = with stdenv.lib; {
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;
maintainers = with maintainers; [ cleverca22 obadz toonn ];
2017-06-26 00:17:20 +01:00
platforms = platforms.linux ++ platforms.darwin;
};
}