mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub, fetchpatch }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "netperf";
|
|
version = "20210121";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HewlettPackard";
|
|
repo = "netperf";
|
|
rev = "3bc455b23f901dae377ca0a558e1e32aa56b31c4";
|
|
sha256 = "s4G1ZN+6LERdEMDkc+12ZQgTi6K+ppUYUCGn4faCS9c=";
|
|
};
|
|
|
|
patches = [
|
|
# Pul fix pending upstream inclusion for -fno-common toolchains:
|
|
# https://github.com/HewlettPackard/netperf/pull/46
|
|
(fetchpatch {
|
|
name = "fno-common.patch";
|
|
url = "https://github.com/HewlettPackard/netperf/commit/c6a2e17fe35f0e68823451fedfdf5b1dbecddbe3.patch";
|
|
sha256 = "P/lRa6EakSalKWDTgZ7bWeGleaTLLa5UhzulxKd1xE4=";
|
|
})
|
|
];
|
|
|
|
buildInputs = lib.optional (with stdenv.hostPlatform; isx86 && isLinux) libsmbios;
|
|
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/";
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.mmlb ];
|
|
};
|
|
}
|