1{ stdenv
2, lib
3, makeWrapper
4, fetchurl
5, numactl
6, python3
7}:
8
9stdenv.mkDerivation rec {
10 pname = "rt-tests";
11 version = "2.5";
12
13 src = fetchurl {
14 url = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/${pname}-${version}.tar.gz";
15 sha256 = "sha256-LzN3YB3Lb7tjyEplrFaNYtiGwHUUTztZBsMrUndd2cU=";
16 };
17
18 nativeBuildInputs = [ makeWrapper ];
19 buildInputs = [ numactl python3 ];
20
21 makeFlags = [ "prefix=$(out)" "DESTDIR=" "PYLIB=$(out)/${python3.sitePackages}" ];
22
23 postInstall = ''
24 wrapProgram "$out/bin/determine_maximum_mpps.sh" --prefix PATH : $out/bin
25 '';
26
27 meta = with lib; {
28 homepage = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git";
29 description = "Suite of real-time tests - cyclictest, hwlatdetect, pip_stress, pi_stress, pmqtest, ptsematest, rt-migrate-test, sendme, signaltest, sigwaittest, svsematest";
30 platforms = platforms.linux;
31 maintainers = with maintainers; [ poelzi ];
32 license = licenses.gpl2;
33 };
34}