Skip to content

Commit

Permalink
Fix perf version and list optionals
Browse files Browse the repository at this point in the history
Match perf version with kernel version. Change lib.lists.optionals
back to single optional.

Signed-off-by: Samuli Leivo <[email protected]>
  • Loading branch information
leivos-unikie authored and brianmcgillion committed Mar 26, 2024
1 parent 91e9c29 commit 7ceca54
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/common/development/debug-tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,13 @@ in
# Performance testing
speedtest-cli
iperf

# Let's have this fixed version according to kernel.
# It would be possible to select also latest producing currently (12-3-2024) perf version 6.6.7
# linuxPackages_latest.perf
linuxKernel.packages.linux_6_1.perf
# Match perf version with kernel.
config.boot.kernelPackages.perf
]
# TODO Can this be changed to platformPkgs to filter ?
# LuaJIT (which is sysbench dependency) not available on RISC-V
++ lib.lists.optionals (config.nixpkgs.hostPlatform.system != "riscv64-linux") [sysbench]
++ lib.optional (config.nixpkgs.hostPlatform.system != "riscv64-linux") sysbench
# runtimeShell (unixbench dependency) not available on RISC-V nor on cross-compiled Orin AGX/NX
++ lib.lists.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [unixbench];
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) unixbench;
};
}

0 comments on commit 7ceca54

Please sign in to comment.