nixpkgs/pkgs/tools/networking/tox-node/default.nix

47 lines
1 KiB
Nix
Raw Normal View History

2019-04-07 14:29:30 +02:00
{ stdenv, rustPlatform, fetchFromGitHub
, libsodium, openssl
, pkgconfig
}:
with rustPlatform;
buildRustPackage rec {
2019-08-31 13:41:23 +02:00
pname = "tox-node";
2019-05-27 13:56:59 +02:00
version = "0.0.8";
2019-04-07 14:29:30 +02:00
src = fetchFromGitHub {
owner = "tox-rs";
repo = "tox-node";
rev = "v${version}";
2019-05-27 13:56:59 +02:00
sha256 = "0vnjbhz74d4s6701xsd46ygx0kq8wd8xwpajvkhdivc042mw9078";
2019-04-07 14:29:30 +02:00
};
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;
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
2019-05-27 13:56:59 +02:00
cargoSha256 = "1nv0630yb8k857n7km4bbgf41j747xdxv7xnc6a9746qpggmdbkh";
2019-04-07 14:29:30 +02:00
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 ];
};
}