2019-04-07 13:29:30 +01:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub
|
|
|
|
, libsodium, openssl
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "tox-node";
|
2019-05-27 12:56:59 +01:00
|
|
|
version = "0.0.8";
|
2019-04-07 13:29:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tox-rs";
|
|
|
|
repo = "tox-node";
|
|
|
|
rev = "v${version}";
|
2019-05-27 12:56:59 +01:00
|
|
|
sha256 = "0vnjbhz74d4s6701xsd46ygx0kq8wd8xwpajvkhdivc042mw9078";
|
2019-04-07 13:29:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libsodium openssl ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
SODIUM_USE_PKG_CONFIG = "yes";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2020-03-20 06:47:12 +00:00
|
|
|
install -D $releaseDir/tox-node $out/bin/tox-node
|
2019-04-07 13:29:30 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-02-28 05:54:17 +00:00
|
|
|
cargoSha256 = "1ka22krw8s05vpamg9naqqf7vv5h8dkpfdik0wy8nispkrxzgb92";
|
2019-04-07 13:29:30 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A server application to run tox node written in pure Rust";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tox-rs/tox-node";
|
2019-04-07 13:29:30 +01:00
|
|
|
license = [ licenses.mit ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ suhr ];
|
|
|
|
};
|
|
|
|
}
|