@@ -35,7 +35,15 @@ stdenv.mkDerivation rec {
3535 ++ stdenv.lib.optional enableXXHash xxHash;
3636 nativeBuildInputs = [perl];
3737
38− configureFlags = ["--with-nobody-group=nogroup"];
38+ configureFlags = ["--with-nobody-group=nogroup"]
39+ # Work around issue with cross-compilation:
40+ # configure.sh: error: cannot run test program while cross compiling
41+ # Remove once 3.2.4 or more recent is released.
42+ # The following PR should fix the cross-compilation issue.
43+ # Test using `nix-build -A pkgsCross.aarch64-multiplatform.rsync`.
44+ # https://github.com/WayneD/rsync/commit/b7fab6f285ff0ff3816b109a8c3131b6ded0b484
45+ ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--enable-simd=no"
46+ ;
3947
4048 passthru.tests = { inherit (nixosTests) rsyncd; };
4149