Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib 2, fetchFromGitHub, fetchpatch 3, autoconf, automake, perl, rdma-core }: 4 5stdenv.mkDerivation rec { 6 pname = "qperf"; 7 version = "0.4.11"; 8 9 src = fetchFromGitHub { 10 owner = "linux-rdma"; 11 repo = "qperf"; 12 rev = "v${version}"; 13 hash = "sha256-x9l8xqwMDHlXRZpWt3XiqN5xyCTV5rk8jp/ClRPPECI="; 14 }; 15 16 patches = [ (fetchpatch { 17 name = "version-bump.patch"; 18 url = "https://github.com/linux-rdma/qperf/commit/34ec57ddb7e5ae1adfcfc8093065dff90b69a275.patch"; 19 hash = "sha256-+7ckhUUB+7BG6qRKv0wgyIxkyvll2xjf3Wk1hpRsDo0="; 20 }) ]; 21 22 nativeBuildInputs = [ autoconf automake perl rdma-core ]; 23 buildInputs = [ rdma-core ]; 24 25 postUnpack = '' 26 patchShebangs . 27 ''; 28 29 configurePhase = '' 30 runHook preConfigure 31 ./autogen.sh 32 ./configure --prefix=$out 33 runHook postConfigure 34 ''; 35 36 meta = with lib; { 37 description = "Measure RDMA and IP performance"; 38 homepage = "https://github.com/linux-rdma/qperf"; 39 license = licenses.gpl2Only; 40 platforms = platforms.linux; 41 maintainers = with maintainers; [ edwtjo ]; 42 }; 43}