mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
41 lines
962 B
Nix
41 lines
962 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, nlohmann_json
|
|
, libtoxcore
|
|
, libsodium
|
|
, libcap
|
|
, zeromq
|
|
, systemd
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "toxvpn";
|
|
version = "unstable-2019-09-09";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cleverca22";
|
|
repo = "toxvpn";
|
|
rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a";
|
|
sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb";
|
|
};
|
|
|
|
buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
|
|
++ lib.optionals stdenv.isLinux [ libcap systemd ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = lib.optionals stdenv.isLinux [ "-DSYSTEMD=1" ];
|
|
|
|
postInstall = "$out/bin/toxvpn -h";
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|