reaction: fix cross compilation

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2025-12-16 14:50:50 +05:30
parent 10c4b77c91
commit 0edd4f94a5
+9
View File
@@ -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"