2021-01-15 22:18:51 +00:00
|
|
|
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "netperf";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "20210121";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HewlettPackard";
|
|
|
|
repo = "netperf";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "3bc455b23f901dae377ca0a558e1e32aa56b31c4";
|
|
|
|
sha256 = "s4G1ZN+6LERdEMDkc+12ZQgTi6K+ppUYUCGn4faCS9c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = lib.optional (with stdenv.hostPlatform; isx86 && isLinux) libsmbios;
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
autoreconfPhase = ''
|
|
|
|
autoreconf -i -I src/missing/m4
|
|
|
|
'';
|
|
|
|
configureFlags = [ "--enable-demo" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Benchmark to measure the performance of many different types of networking";
|
|
|
|
homepage = "http://www.netperf.org/netperf/";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.mmlb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|