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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
963 B
Nix
Raw Normal View History

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