mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
commit
70689254bc
3 changed files with 50 additions and 0 deletions
|
@ -4599,6 +4599,11 @@
|
|||
github = "stumoss";
|
||||
name = "Stuart Moss";
|
||||
};
|
||||
suhr = {
|
||||
email = "suhr@i2pmail.org";
|
||||
github = "suhr";
|
||||
name = "Сухарик";
|
||||
};
|
||||
SuprDewd = {
|
||||
email = "suprdewd@gmail.com";
|
||||
github = "SuprDewd";
|
||||
|
|
43
pkgs/tools/networking/tox-node/default.nix
Normal file
43
pkgs/tools/networking/tox-node/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue