Skip to content

Commit

Permalink
crusader: init at 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
x123 committed Jan 19, 2025
1 parent d37c246 commit ced6f69
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions pkgs/by-name/cr/crusader/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
autoPatchelfHook,
lib,
libgcc,
libGL,
fetchFromGitHub,
fontconfig,
pkg-config,
rustPlatform,
stdenv,
libxkbcommon,
xorg,
}:
rustPlatform.buildRustPackage rec {
pname = "crusader";
version = "0.3.2";

src = fetchFromGitHub {
owner = "Zoxc";
repo = "crusader";
rev = "refs/tags/v${version}";
hash = "sha256-M5zMOOYDS91p0EuDSlQ3K6eiVQpbX6953q+cXBMix2s=";
};

sourceRoot = "${src.name}/src";

cargoDeps = rustPlatform.fetchCargoVendor {
inherit
pname
version
src
sourceRoot
;
hash = "sha256-f0TWiRX203/gNsa9UEr/1Bv+kUxLAK/Zlw+S693xZlE=";
};

# autoPatchelfHook required on linux for crusader-gui
nativeBuildInputs = [
pkg-config
] ++ lib.optionals (!stdenv.isDarwin) [ autoPatchelfHook ];

buildInputs = [
fontconfig
libgcc
libxkbcommon
xorg.libX11
xorg.libXcursor
xorg.libXi
];

# required for crusader-gui
runtimeDependencies = [
libGL
libxkbcommon
];

meta = {
description = "Network throughput and latency tester";
homepage = "https://github.com/Zoxc/crusader";
changelog = "https://github.com/Zoxc/crusader/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ x123 ];
platforms = lib.platforms.all;
};
}

0 comments on commit ced6f69

Please sign in to comment.