forked from mirrors/nixpkgs
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
36 lines
812 B
Nix
36 lines
812 B
Nix
{ lib, rustPlatform, fetchFromGitHub
|
|
, libsodium, openssl
|
|
, pkg-config
|
|
}:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
pname = "tox-node";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tox-rs";
|
|
repo = "tox-node";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-tB6v2NEBdTNHf89USdQOr/pV0mbxxb8ftOYPPJMvz5Y=";
|
|
};
|
|
|
|
buildInputs = [ libsodium openssl ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
SODIUM_USE_PKG_CONFIG = "yes";
|
|
|
|
doCheck = false;
|
|
|
|
cargoSha256 = "sha256-J/0KO33vZmOvm6V7qCXInuAJTbRqyy5/qj6p6dEmoas=";
|
|
|
|
meta = with lib; {
|
|
description = "A server application to run tox node written in pure Rust";
|
|
homepage = "https://github.com/tox-rs/tox-node";
|
|
license = [ licenses.gpl3Plus ];
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ suhr ];
|
|
};
|
|
}
|