Merge pull request #309396 from adamcstephens/s0ix-selftest-tool/fix

s0ix-selftest-tool: unstable-2022-11-04 -> 0-unstable-2024-02-07

authored by Adam C. Stephens and committed by GitHub 5c4ae2d9 9a35766b

+74 -83
+74
pkgs/by-name/s0/s0ix-selftest-tool/package.nix
··· 1 + { 2 + acpica-tools, 3 + bc, 4 + coreutils, 5 + fetchFromGitHub, 6 + gawk, 7 + gnugrep, 8 + gnused, 9 + linuxPackages, 10 + lib, 11 + pciutils, 12 + powertop, 13 + makeWrapper, 14 + stdenv, 15 + unstableGitUpdater, 16 + util-linux, 17 + xorg, 18 + xxd, 19 + }: 20 + 21 + let 22 + deps = [ 23 + acpica-tools 24 + bc 25 + coreutils 26 + gawk 27 + gnugrep 28 + gnused 29 + linuxPackages.turbostat 30 + pciutils 31 + powertop 32 + util-linux 33 + xorg.xset 34 + xxd 35 + ]; 36 + in 37 + stdenv.mkDerivation { 38 + pname = "s0ix-selftest-tool"; 39 + version = "0-unstable-2024-02-07"; 40 + 41 + src = fetchFromGitHub { 42 + owner = "intel"; 43 + repo = "S0ixSelftestTool"; 44 + rev = "c12ae3ea611812547e09bb755dd015dd969b664c"; 45 + hash = "sha256-9O72TxlLrkQbt80izWdbLQt9OW/4Aq1p4RuQoD2yQ5E="; 46 + }; 47 + 48 + # don't use the bundled turbostat binary 49 + postPatch = '' 50 + substituteInPlace s0ix-selftest-tool.sh --replace '"$DIR"/turbostat' 'turbostat' 51 + ''; 52 + 53 + nativeBuildInputs = [ makeWrapper ]; 54 + dontConfigure = true; 55 + dontBuild = true; 56 + 57 + installPhase = '' 58 + runHook preInstall 59 + install -Dm555 s0ix-selftest-tool.sh "$out/bin/s0ix-selftest-tool" 60 + wrapProgram "$out/bin/s0ix-selftest-tool" --prefix PATH : ${lib.escapeShellArg deps} 61 + runHook postInstall 62 + ''; 63 + 64 + passthru.updateScript = unstableGitUpdater { }; 65 + 66 + meta = with lib; { 67 + homepage = "https://github.com/intel/S0ixSelftestTool"; 68 + description = "A 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"; 73 + }; 74 + }
-81
pkgs/tools/system/s0ix-selftest-tool/default.nix
··· 1 - { 2 - acpica-tools, 3 - bash, 4 - bc, 5 - coreutils, 6 - fetchFromGitHub, 7 - gawk, 8 - gnugrep, 9 - gnused, 10 - linuxPackages, 11 - lib, 12 - pciutils, 13 - powertop, 14 - resholve, 15 - util-linux, 16 - xorg, 17 - xxd, 18 - }: 19 - resholve.mkDerivation { 20 - pname = "s0ix-selftest-tool"; 21 - version = "unstable-2022-11-04"; 22 - 23 - src = fetchFromGitHub { 24 - owner = "intel"; 25 - repo = "S0ixSelftestTool"; 26 - rev = "1b6db3c3470a3a74b052cb728a544199661d18ec"; 27 - hash = "sha256-w97jfdppW8kC8K8XvBntmkfntIctXDQCWmvug+H1hKA="; 28 - }; 29 - 30 - # don't use the bundled turbostat binary 31 - postPatch = '' 32 - substituteInPlace s0ix-selftest-tool.sh --replace '"$DIR"/turbostat' 'turbostat' 33 - substituteInPlace s0ix-selftest-tool.sh --replace 'sudo ' "" 34 - 35 - ''; 36 - 37 - dontConfigure = true; 38 - dontBuild = true; 39 - 40 - installPhase = '' 41 - runHook preInstall 42 - install -Dm555 s0ix-selftest-tool.sh "$out/bin/s0ix-selftest-tool" 43 - runHook postInstall 44 - ''; 45 - 46 - solutions = { 47 - default = { 48 - scripts = ["bin/s0ix-selftest-tool"]; 49 - interpreter = lib.getExe bash; 50 - inputs = [ 51 - acpica-tools 52 - bc 53 - coreutils 54 - gawk 55 - gnugrep 56 - gnused 57 - linuxPackages.turbostat 58 - pciutils 59 - powertop 60 - util-linux 61 - xorg.xset 62 - xxd 63 - ]; 64 - execer = [ 65 - "cannot:${util-linux}/bin/dmesg" 66 - "cannot:${powertop}/bin/powertop" 67 - "cannot:${util-linux}/bin/rtcwake" 68 - "cannot:${linuxPackages.turbostat}/bin/turbostat" 69 - ]; 70 - }; 71 - }; 72 - 73 - meta = with lib; { 74 - homepage = "https://github.com/intel/S0ixSelftestTool"; 75 - description = "A tool for testing the S2idle path CPU Package C-state and S0ix failures"; 76 - license = licenses.gpl2Only; 77 - platforms = platforms.linux; 78 - maintainers = with maintainers; [adamcstephens]; 79 - mainProgram = "s0ix-selftest-tool"; 80 - }; 81 - }
-2
pkgs/top-level/all-packages.nix
··· 2021 2021 2022 2022 ronin = callPackage ../tools/security/ronin { }; 2023 2023 2024 - s0ix-selftest-tool = callPackage ../tools/system/s0ix-selftest-tool { }; 2025 - 2026 2024 scarab = callPackage ../tools/games/scarab { }; 2027 2025 2028 2026 sdbus-cpp = callPackage ../development/libraries/sdbus-cpp { };