@@ -20,11 +20,14 @@ in rec {
2020
2121 configureFlags = [ "--release-channel=stable" ];
2222
23+ # Upstream is not running tests on aarch64:
24+ # see https://github.com/rust-lang/rust/issues/49807#issuecomment-380860567
25+ # So we do the same.
26+ doCheck = !stdenv.isAarch64;
27+
2328 patches = [
2429 ./patches/0001-Disable-fragile-tests-libstd-net-tcp-on-Darwin-Linux.patch
25− ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch
26− # https://github.com/rust-lang/rust/issues/45410
27− ++ stdenv.lib.optional stdenv.isAarch64 ./patches/aarch64-disable-test_loading_cosine.patch;
30+ ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
2831
2932 };
3033