Files
nixpkgs/pkgs/by-name/qp/qperf/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
fetchpatch,
autoconf,
automake,
perl,
rdma-core,
}:
stdenv.mkDerivation rec {
pname = "qperf";
version = "0.4.11";
src = fetchFromGitHub {
owner = "linux-rdma";
repo = "qperf";
rev = "v${version}";
hash = "sha256-x9l8xqwMDHlXRZpWt3XiqN5xyCTV5rk8jp/ClRPPECI=";
};
patches = [
(fetchpatch {
name = "version-bump.patch";
url = "https://github.com/linux-rdma/qperf/commit/34ec57ddb7e5ae1adfcfc8093065dff90b69a275.patch";
hash = "sha256-+7ckhUUB+7BG6qRKv0wgyIxkyvll2xjf3Wk1hpRsDo0=";
})
];
nativeBuildInputs = [
autoconf
automake
perl
rdma-core
];
buildInputs = [ rdma-core ];
postUnpack = ''
patchShebangs .
'';
configurePhase = ''
runHook preConfigure
./autogen.sh
./configure --prefix=$out
runHook postConfigure
'';
meta = with lib; {
description = "Measure RDMA and IP performance";
mainProgram = "qperf";
homepage = "https://github.com/linux-rdma/qperf";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ edwtjo ];
};
}