29 linuxPackages.turbostat
38 pname = "s0ix-selftest-tool";
39 version = "0-unstable-2024-09-22";
41 src = fetchFromGitHub {
43 repo = "S0ixSelftestTool";
44 rev = "3af4af2009cb01da43ddae906f671d435494a0dc";
45 hash = "sha256-phQxlbQB3J08tPtcw4vqupVgAT9gsSJxgPT044SMMNk=";
48 # don't use the bundled turbostat binary
50 substituteInPlace s0ix-selftest-tool.sh --replace '"$DIR"/turbostat' 'turbostat'
53 nativeBuildInputs = [ makeWrapper ];
59 install -Dm555 s0ix-selftest-tool.sh "$out/bin/s0ix-selftest-tool"
60 wrapProgram "$out/bin/s0ix-selftest-tool" --prefix PATH : ${lib.escapeShellArg deps}
64 passthru.updateScript = unstableGitUpdater { };
67 homepage = "https://github.com/intel/S0ixSelftestTool";
68 description = "Tool for testing the S2idle path CPU Package C-state and S0ix failures";
69 license = licenses.gpl2Only;
70 platforms = platforms.linux;
71 maintainers = with maintainers; [ adamcstephens ];
72 mainProgram = "s0ix-selftest-tool";