2021-07-25 07:44:35 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen
|
|
|
|
, enableTool ? false
|
|
|
|
, enableTest ? false }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sockperf";
|
2022-09-22 05:50:25 +02:00
|
|
|
version = "3.10";
|
2021-07-25 07:44:35 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mellanox";
|
|
|
|
repo = "sockperf";
|
|
|
|
rev = version;
|
2022-09-22 05:50:25 +02:00
|
|
|
sha256 = "sha256-VvxL/bcn69uL7CBpDu4qwbKZwlC4N/kNeRX4k3UzxPI=";
|
2021-07-25 07:44:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook doxygen ];
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-doc" ]
|
|
|
|
++ lib.optional enableTest "--enable-test"
|
|
|
|
++ lib.optional enableTool "--enable-tool";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-28 15:22:26 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2021-07-25 07:44:35 +02:00
|
|
|
description = "Network Benchmarking Utility";
|
|
|
|
homepage = "https://github.com/Mellanox/sockperf";
|
|
|
|
license = licenses.bsd3;
|
2022-02-11 05:45:03 +01:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-07-25 07:44:35 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|