mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{ stdenv, rustPlatform, fetchFromGitHub
|
|
, libsodium, openssl
|
|
, pkgconfig
|
|
}:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
pname = "tox-node";
|
|
version = "0.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tox-rs";
|
|
repo = "tox-node";
|
|
rev = "v${version}";
|
|
sha256 = "0vnjbhz74d4s6701xsd46ygx0kq8wd8xwpajvkhdivc042mw9078";
|
|
};
|
|
|
|
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;
|
|
|
|
cargoSha256 = "1nv0630yb8k857n7km4bbgf41j747xdxv7xnc6a9746qpggmdbkh";
|
|
|
|
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 ];
|
|
};
|
|
}
|