xfr: init at 0.9.6

This commit is contained in:
Tom Herbers
2026-03-10 20:44:52 +01:00
parent c88e63f4ca
commit 5fa08ada63
+57
View File
@@ -0,0 +1,57 @@
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "xfr";
version = "0.9.6";
src = fetchFromGitHub {
owner = "lance0";
repo = "xfr";
tag = "v${finalAttrs.version}";
hash = "sha256-wYhwDSL9C4rtWgkhaXimk3u03c9UHj2O9eEe8pRlj6c=";
};
cargoHash = "sha256-f8m5vFNk62iXyK1Sh3Dda0pV6rUNErymS6QxiCuZ8DA=";
nativeBuildInputs = [
installShellFiles
versionCheckHook
];
doInstallCheck = true;
postInstall = ''
installShellCompletion --cmd xfr \
--bash <($out/bin/xfr --completions bash) \
--fish <($out/bin/xfr --completions fish) \
--zsh <($out/bin/xfr --completions zsh)
'';
passthru = {
updateScript = nix-update-script { };
};
__structuredAttrs = true;
meta = {
description = "Modern iperf3 alternative with a live TUI, multi-client server, and QUIC support.";
mainProgram = "xfr";
homepage = "https://github.com/lance0/xfs";
changelog = "https://github.com/lance0/xfr/releases/tag/v${finalAttrs.version}";
maintainers = with lib.maintainers; [
_0x4A6F
herbetom
];
license = with lib.licenses; [
asl20
mit
];
platforms = lib.platforms.linux;
};
})