diff --git a/pkgs/by-name/re/reaction/package.nix b/pkgs/by-name/re/reaction/package.nix index 2a480eccee7f..3a14ac5a7add 100644 --- a/pkgs/by-name/re/reaction/package.nix +++ b/pkgs/by-name/re/reaction/package.nix @@ -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"