diff --git a/pkgs/by-name/ma/matrix-tuwunel/package.nix b/pkgs/by-name/ma/matrix-tuwunel/package.nix index 2ac745b9c1f21..939c89f4e1351 100644 --- a/pkgs/by-name/ma/matrix-tuwunel/package.nix +++ b/pkgs/by-name/ma/matrix-tuwunel/package.nix @@ -152,6 +152,8 @@ rustPlatform.buildRustPackage (finalAttrs: { libredirect.hook ]; + # Make sure tuwunel doesn't try to write to arbitrary + # directories or have DNS timeouts during `cargo test`. preCheck = let fakeResolvConf = writeTextFile { @@ -165,7 +167,16 @@ rustPlatform.buildRustPackage (finalAttrs: { export NIX_REDIRECTS="/etc/resolv.conf=${fakeResolvConf}" export TUWUNEL_DATABASE_PATH="$(mktemp -d)/smoketest.db" ''; - doCheck = true; + + # For some unexplained reason, tuwunel's built-in tests + # time out on aarch64 when run on Hydra. The tests run + # without issue on x86-64 on Hydra and they also run fine + # on aarch64 on at least one dev's machine. + doCheck = + !(lib.elem stdenv.hostPlatform.system [ + "aarch64-linux" + "aarch64-darwin" + ]); passthru = { rocksdb = rocksdb'; # make used rocksdb version available (e.g., for backup scripts)