Skip to content

Commit

Permalink
Disable sysbench while cross-compiling
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Tammi <[email protected]>
  • Loading branch information
Mika Tammi committed Oct 6, 2023
1 parent 694e937 commit f738c37
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/development/debug-tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ in
speedtest-cli
]
++
# LuaJIT (which is sysbench dependency) not available on RISC-V
lib.optional (config.nixpkgs.hostPlatform.system != "riscv64-linux") sysbench;
# LuaJIT (which is sysbench dependency) not available on RISC-V.
# Sysbench also does not cross-compile.
lib.optional (
(config.nixpkgs.hostPlatform.system != "riscv64-linux")
&& (config.nixpkgs.buildPlatform.system == config.nixpkgs.hostPlatform.system)
)
sysbench;
};
}

0 comments on commit f738c37

Please sign in to comment.