reaction: fix cross compilation
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
nixosTests,
|
||||
rustPlatform,
|
||||
fetchFromGitLab,
|
||||
@@ -22,6 +23,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# cross compiling for linux target
|
||||
buildInputs =
|
||||
lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform && stdenv.hostPlatform.isLinux)
|
||||
[
|
||||
stdenv.cc.libc
|
||||
(stdenv.cc.libc.static or null)
|
||||
];
|
||||
|
||||
checkFlags = [
|
||||
# Those time-based tests behave poorly in low-resource environments (CI...)
|
||||
"--skip=daemon::filter::tests"
|
||||
|
||||
Reference in New Issue
Block a user