Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 44 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 makeWrapper, 5 fetchurl, 6 numactl, 7 python3, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "rt-tests"; 12 version = "2.8"; 13 14 src = fetchurl { 15 url = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/${pname}-${version}.tar.gz"; 16 sha256 = "sha256-iBpd7K9VpvUH5wXBKypyQl8NAHN3Om5/PcoJ8RH37mI="; 17 }; 18 19 nativeBuildInputs = [ makeWrapper ]; 20 buildInputs = [ 21 numactl 22 python3 23 ]; 24 25 makeFlags = [ 26 "prefix=$(out)" 27 "DESTDIR=" 28 "PYLIB=$(out)/${python3.sitePackages}" 29 "CC=${stdenv.cc.targetPrefix}cc" 30 "AR=${stdenv.cc.bintools.targetPrefix}ar" 31 ]; 32 33 postInstall = '' 34 wrapProgram "$out/bin/determine_maximum_mpps.sh" --prefix PATH : $out/bin 35 ''; 36 37 meta = with lib; { 38 homepage = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git"; 39 description = "Suite of real-time tests - cyclictest, hwlatdetect, pip_stress, pi_stress, pmqtest, ptsematest, rt-migrate-test, sendme, signaltest, sigwaittest, svsematest"; 40 platforms = platforms.linux; 41 maintainers = with maintainers; [ poelzi ]; 42 license = licenses.gpl2Only; 43 }; 44}