@@ -36,8 +36,11 @@ stdenv.mkDerivation rec {
3636 '';
3737 arch = if stdenv.hostPlatform.system == "x86_64-linux" then "linux-64-thr" else
3838 if stdenv.hostPlatform.system == "i686-linux" then "linux-thr" else
39− if stdenv.hostPlatform.system == "aarch64-linux" then "linux-arm-thr" else
40− if stdenv.hostPlatform.system == "armv7l-linux" then "linux-arm-thr" else
39+ # 2021-03-29: multithread (-DTHR -D_REENTRANT) was disabled on linux-arm
40+ # because it caused Sage's 3D plotting tests to hang indefinitely.
41+ # see https://github.com/NixOS/nixpkgs/pull/117465
42+ if stdenv.hostPlatform.system == "aarch64-linux" then "linux-arm" else
43+ if stdenv.hostPlatform.system == "armv7l-linux" then "linux-arm" else
4144 if stdenv.hostPlatform.system == "x86_64-darwin" then "macosx-thr" else
4245 if stdenv.hostPlatform.system == "i686-darwin" then "macosx-64-thr" else
4346 if stdenv.hostPlatform.system == "i686-cygwin" then "win32" else