3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/sockperf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
815 B
Nix
Raw Normal View History

2021-07-25 06:44:35 +01:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen
, enableTool ? false
, enableTest ? false }:
stdenv.mkDerivation rec {
pname = "sockperf";
2022-09-22 04:50:25 +01:00
version = "3.10";
2021-07-25 06:44:35 +01:00
src = fetchFromGitHub {
owner = "Mellanox";
repo = "sockperf";
rev = version;
2022-09-22 04:50:25 +01:00
sha256 = "sha256-VvxL/bcn69uL7CBpDu4qwbKZwlC4N/kNeRX4k3UzxPI=";
2021-07-25 06:44:35 +01:00
};
nativeBuildInputs = [ autoreconfHook doxygen ];
configureFlags = [ "--enable-doc" ]
++ lib.optional enableTest "--enable-test"
++ lib.optional enableTool "--enable-tool";
doCheck = true;
meta = with lib; {
broken = stdenv.isDarwin;
2021-07-25 06:44:35 +01: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 06:44:35 +01:00
platforms = platforms.all;
};
}