2021-07-25 05:44:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen
|
|
|
|
, enableTool ? false
|
|
|
|
, enableTest ? false }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sockperf";
|
2022-09-22 03:50:25 +00:00
|
|
|
version = "3.10";
|
2021-07-25 05:44:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mellanox";
|
|
|
|
repo = "sockperf";
|
|
|
|
rev = version;
|
2022-09-22 03:50:25 +00:00
|
|
|
sha256 = "sha256-VvxL/bcn69uL7CBpDu4qwbKZwlC4N/kNeRX4k3UzxPI=";
|
2021-07-25 05:44:35 +00: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 13:22:26 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-07-25 05:44:35 +00:00
|
|
|
description = "Network Benchmarking Utility";
|
|
|
|
homepage = "https://github.com/Mellanox/sockperf";
|
|
|
|
license = licenses.bsd3;
|
2022-02-11 04:45:03 +00:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-07-25 05:44:35 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|