2021-01-25 09:26:54 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub
|
2019-04-07 14:29:30 +02:00
|
|
|
, libsodium, openssl
|
2021-01-17 04:51:22 +01:00
|
|
|
, pkg-config
|
2019-04-07 14:29:30 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "tox-node";
|
2021-02-06 23:35:57 +01:00
|
|
|
version = "0.1.1";
|
2019-04-07 14:29:30 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tox-rs";
|
|
|
|
repo = "tox-node";
|
|
|
|
rev = "v${version}";
|
2021-02-06 23:35:57 +01:00
|
|
|
sha256 = "sha256-tB6v2NEBdTNHf89USdQOr/pV0mbxxb8ftOYPPJMvz5Y=";
|
2019-04-07 14:29:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libsodium openssl ];
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-04-07 14:29:30 +02:00
|
|
|
|
|
|
|
SODIUM_USE_PKG_CONFIG = "yes";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "sha256-J/0KO33vZmOvm6V7qCXInuAJTbRqyy5/qj6p6dEmoas=";
|
2019-04-07 14:29:30 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-04-07 14:29:30 +02:00
|
|
|
description = "A server application to run tox node written in pure Rust";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/tox-rs/tox-node";
|
2020-10-07 22:37:19 +02:00
|
|
|
license = [ licenses.gpl3Plus ];
|
2019-04-07 14:29:30 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ suhr ];
|
|
|
|
};
|
|
|
|
}
|