tox-node: init at 0.0.7

This commit is contained in:
Сухарик 2019-04-07 15:29:30 +03:00
parent bd0dcbb8da
commit e090a62b79
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ stdenv, rustPlatform, fetchFromGitHub
, libsodium, openssl
, pkgconfig
}:
with rustPlatform;
buildRustPackage rec {
name = "tox-node-${version}";
version = "0.0.7";
src = fetchFromGitHub {
owner = "tox-rs";
repo = "tox-node";
rev = "v${version}";
sha256 = "0p1k4glqm3xasck66fywkyg42lbccad9rc6biyvi24rn76qip4jm";
};
buildInputs = [ libsodium openssl ];
nativeBuildInputs = [ pkgconfig ];
SODIUM_USE_PKG_CONFIG = "yes";
installPhase = ''
runHook preInstall
install -D target/release/tox-node $out/bin/tox-node
runHook postInstall
'';
doCheck = false;
cargoSha256 = "18w1ycvj2q4q8lj81wn5lfljh5wa7b230ahqdz30w20pv1cazsv2";
meta = with stdenv.lib; {
description = "A server application to run tox node written in pure Rust";
homepage = https://github.com/tox-rs/tox-node;
license = [ licenses.mit ];
platforms = platforms.linux;
maintainers = with maintainers; [ suhr ];
};
}

View file

@ -5967,6 +5967,8 @@ in
torsocks = callPackage ../tools/security/tor/torsocks.nix { };
tox-node = callPackage ../tools/networking/tox-node { };
toxvpn = callPackage ../tools/networking/toxvpn { };
toybox = callPackage ../tools/misc/toybox { };