nixpkgs/pkgs/by-name/rt/rt-tests/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.0 KiB
Nix
Raw Normal View History

{
stdenv,
lib,
makeWrapper,
fetchurl,
numactl,
python3,
}:
stdenv.mkDerivation rec {
pname = "rt-tests";
2024-05-25 03:37:50 +00:00
version = "2.7";
src = fetchurl {
url = "https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/${pname}-${version}.tar.gz";
2024-05-25 03:37:50 +00:00
sha256 = "sha256-1kfLmB1RPO8Hd7o8tROSyVBWchchc+AGPuOUlM2hR8g=";
};
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";
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 ];
2024-05-26 12:16:07 +00:00
license = licenses.gpl2Only;
};
}