1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 486
486
'' ;
487
487
} ;
488
488
489
- # note that you need version >= v3.16.14.8,
490
- # otherwise the gem will fail to link to the libv8 binary.
491
- # see: https://github.com/cowboyd/libv8/pull/161
492
- libv8 = attrs : {
493
- buildInputs = [ which nodejs . libv8 python2 ] ;
494
- buildFlags = [ "--with-system-v8=true" ] ;
495
- dontBuild = false ;
496
- # The gem includes broken symlinks which are ignored during unpacking, but
497
- # then fail during build. Since the content is missing anyway, touching the
498
- # files is enough to unblock the build.
499
- preBuild = ''
500
- touch vendor/depot_tools/cbuildbot vendor/depot_tools/chrome_set_ver vendor/depot_tools/cros_sdk
501
- '' ;
502
- postPatch = ''
503
- substituteInPlace ext/libv8/extconf.rb \
504
- --replace "location = Libv8::Location::Vendor.new" \
505
- "location = Libv8::Location::System.new"
506
- '' ;
507
- meta . broken = true ; # At 2023-01-20, errors as:
508
- # "Failed to build gem native extension."
509
- # Requires Python 2. Project is abandoned.
510
- } ;
511
-
512
489
execjs = attrs : {
513
490
propagatedBuildInputs = [ nodejs . libv8 ] ;
514
491
} ;
0 commit comments