2021-01-15 05:42:41 +00:00
|
|
|
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub }:
|
2011-10-25 21:49:22 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "netperf";
|
2019-04-08 11:20:37 +01:00
|
|
|
version = "20180613";
|
2011-10-25 21:49:22 +01:00
|
|
|
|
2017-11-14 00:32:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HewlettPackard";
|
|
|
|
repo = "netperf";
|
2019-04-08 11:20:37 +01:00
|
|
|
rev = "bcb868bde7f0203bbab69609f65d4088ba7398db";
|
|
|
|
sha256 = "1wbbgdvhadd3qs3afv6i777argdpcyxkwz4yv6aqp223n8ki6dm8";
|
2011-10-25 21:49:22 +01:00
|
|
|
};
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
buildInputs = lib.optional (with stdenv.hostPlatform; isx86 && isLinux) libsmbios;
|
2018-05-12 17:51:28 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
autoreconfPhase = ''
|
|
|
|
autoreconf -i -I src/missing/m4
|
|
|
|
'';
|
|
|
|
configureFlags = [ "--enable-demo" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-08-10 10:56:22 +01:00
|
|
|
meta = {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Benchmark to measure the performance of many different types of networking";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.netperf.org/netperf/";
|
2012-08-10 10:56:22 +01:00
|
|
|
license = "Hewlett-Packard BSD-like license";
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.mmlb ];
|
2012-08-10 10:56:22 +01:00
|
|
|
};
|
|
|
|
}
|