librespeed-rust: init at 1.3.8

Co-Authored-By: Sandro Jäckel <sandro.jaeckel@gmail.com>
This commit is contained in:
emily
2025-10-07 02:43:37 +02:00
committed by Sandro Jäckel
co-authored by Sandro Jäckel
parent cb4c4fc1a5
commit 75895d79b2
2 changed files with 3405 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,36 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "librespeed-rust";
version = "1.3.8";
src = fetchFromGitHub {
owner = "librespeed";
repo = "speedtest-rust";
tag = "v${version}";
hash = "sha256-TINIKZefT4ngnEtlMjxO56PrQxW5gyb1+higiSnkE3Q=";
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
# Remove vendored lockfile once <https://github.com/librespeed/speedtest-rust/pull/29> lands.
cargoLock.lockFile = ./Cargo.lock;
postInstall = ''
cp -r assets $out/
'';
meta = {
description = "Very lightweight speed test implementation in Rust";
homepage = "https://github.com/librespeed/speedtest-rust";
license = lib.licenses.lgpl3Plus;
teams = with lib.teams; [ c3d2 ];
mainProgram = "librespeed-rs";
};
}