2022-05-19 17:19:14 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, fetchurl
|
|
|
|
, numactl
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rt-tests";
|
2022-08-02 00:22:19 +00:00
|
|
|
version = "2.4";
|
2022-05-19 17:19:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/${pname}-${version}.tar.gz";
|
2022-08-02 00:22:19 +00:00
|
|
|
sha256 = "sha256-yuSfeYTaCZ0F1GXQkDnH8PBvyzR2w/XDitN8csHB9xE=";
|
2022-05-19 17:19:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ numactl python3 ];
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" "DESTDIR=" "PYLIB=$(out)/${python3.sitePackages}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/determine_maximum_mpps.sh" --prefix PATH : $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-20 07:39:47 +00:00
|
|
|
homepage = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git";
|
2022-05-19 17:19:14 +00:00
|
|
|
description = "Suite of real-time tests - cyclictest, hwlatdetect, pip_stress, pi_stress, pmqtest, ptsematest, rt-migrate-test, sendme, signaltest, sigwaittest, svsematest";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ poelzi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|