···361 buildInputs = [ which v8 python2 ];
362 buildFlags = [ "--with-system-v8=true" ];
363 dontBuild = false;
364+ # The gem includes broken symlinks which are ignored during unpacking, but
365+ # then fail during build. Since the content is missing anyway, touching the
366+ # files is enough to unblock the build.
367+ preBuild = ''
368+ touch vendor/depot_tools/cbuildbot vendor/depot_tools/chrome_set_ver vendor/depot_tools/cros_sdk
369+ '';
370 postPatch = ''
371 substituteInPlace ext/libv8/extconf.rb \
372 --replace "location = Libv8::Location::Vendor.new" \