Merge pull request #59055 from suhr/tox-node

tox-node: init at 0.0.7
This commit is contained in:
Maximilian Bosch 2019-04-09 11:48:29 +02:00 committed by GitHub
commit 70689254bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

View File

@ -4599,6 +4599,11 @@
github = "stumoss";
name = "Stuart Moss";
};
suhr = {
email = "suhr@i2pmail.org";
github = "suhr";
name = "Сухарик";
};
SuprDewd = {
email = "suprdewd@gmail.com";
github = "SuprDewd";

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

@ -5968,6 +5968,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 { };