2021-07-25 05:44:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen
|
|
|
|
, enableTool ? false
|
|
|
|
, enableTest ? false }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sockperf";
|
2022-09-08 23:12:02 +00:00
|
|
|
version = "3.9";
|
2021-07-25 05:44:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mellanox";
|
|
|
|
repo = "sockperf";
|
|
|
|
rev = version;
|
2022-09-08 23:12:02 +00:00
|
|
|
sha256 = "sha256-dWhYCLZ5dzp0cSEzozlQyo2gGa6FASM93FvN2PuL34g=";
|
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;
|
|
|
|
};
|
|
|
|
}
|