mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +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.
45 lines
1.1 KiB
Nix
45 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 ];
|
|
};
|
|
}
|