mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
toxvpn: format, cleanup
This commit is contained in:
parent
0b06ccd7be
commit
9733d7e077
@ -1,33 +1,40 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, nlohmann_json,
|
{ lib
|
||||||
libtoxcore, libsodium, libcap, zeromq,
|
, stdenv
|
||||||
systemd ? null }:
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
with lib;
|
, nlohmann_json
|
||||||
|
, libtoxcore
|
||||||
|
, libsodium
|
||||||
|
, libcap
|
||||||
|
, zeromq
|
||||||
|
, systemd
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "toxvpn-2019-09-09";
|
name = "toxvpn";
|
||||||
|
version = "unstable-2019-09-09";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cleverca22";
|
owner = "cleverca22";
|
||||||
repo = "toxvpn";
|
repo = "toxvpn";
|
||||||
rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a";
|
rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a";
|
||||||
sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb";
|
sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
|
buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ]
|
||||||
++ optionals stdenv.isLinux [ libcap systemd ];
|
++ lib.optionals stdenv.isLinux [ libcap systemd ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ];
|
cmakeFlags = lib.optional stdenv.isLinux [ "-DSYSTEMD=1" ];
|
||||||
|
|
||||||
postInstall = "$out/bin/toxvpn -h";
|
postInstall = "$out/bin/toxvpn -h";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A powerful tool that allows one to make tunneled point to point connections over Tox";
|
description = "A powerful tool that allows one to make tunneled point to point connections over Tox";
|
||||||
homepage = "https://github.com/cleverca22/toxvpn";
|
homepage = "https://github.com/cleverca22/toxvpn";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ cleverca22 obadz toonn ];
|
maintainers = with maintainers; [ cleverca22 obadz toonn ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user