diff options
author | Stanisław Pitucha <git@viraptor.info> | 2022-09-01 14:55:06 +1000 |
---|---|---|
committer | Stanisław Pitucha <stan.pitucha@envato.com> | 2022-09-10 23:52:16 +1000 |
commit | 099df1f9acb776b45f91570a3d7de642aacd7993 (patch) | |
tree | d19f5c82c29d1572a8b9da6dd64deb8e8fee5eb2 /pkgs/development/ruby-modules | |
parent | cc9c837aa23a08b18bdda489dbe9728c5aa88466 (diff) |
v8: fix darwin build
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r-- | pkgs/development/ruby-modules/gem-config/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 5a6d885159a57..18435b3b42e3f 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -361,6 +361,12 @@ in buildInputs = [ which v8 python2 ]; buildFlags = [ "--with-system-v8=true" ]; dontBuild = false; + # The gem includes broken symlinks which are ignored during unpacking, but + # then fail during build. Since the content is missing anyway, touching the + # files is enough to unblock the build. + preBuild = '' + touch vendor/depot_tools/cbuildbot vendor/depot_tools/chrome_set_ver vendor/depot_tools/cros_sdk + ''; postPatch = '' substituteInPlace ext/libv8/extconf.rb \ --replace "location = Libv8::Location::Vendor.new" \ |