@ -38,6 +38,11 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
# TODO investigate why tests are broken on darwin
# failures show that tests try to write to paths
# outside of TMPDIR
doCheck = ! stdenv.isDarwin;
checkPhase = ''
runHook preCheck
echo "Running cargo test"