rubyPackages.libv8: use nodejs.libv8

This commit is contained in:
Thomas Gerbet 2024-05-30 11:53:55 +02:00
parent ca5654ba7d
commit 826cc7fa1c

View File

@ -18,7 +18,7 @@
# (to make gems behave if necessary).
{ lib, fetchurl, writeScript, ruby, libkrb5, libxml2, libxslt, python2, stdenv, which
, libiconv, postgresql, v8, clang, sqlite, zlib, imagemagick, lasem
, libiconv, postgresql, nodejs, clang, sqlite, zlib, imagemagick, lasem
, pkg-config , ncurses, xapian, gpgme, util-linux, tzdata, icu, libffi
, cmake, libssh2, openssl, openssl_1_1, libmysqlclient, git, perl, pcre, pcre2, gecode_3, curl
, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, gtk3, buildRubyGem
@ -476,7 +476,7 @@ in
# otherwise the gem will fail to link to the libv8 binary.
# see: https://github.com/cowboyd/libv8/pull/161
libv8 = attrs: {
buildInputs = [ which v8 python2 ];
buildInputs = [ which nodejs.libv8 python2 ];
buildFlags = [ "--with-system-v8=true" ];
dontBuild = false;
# The gem includes broken symlinks which are ignored during unpacking, but
@ -496,7 +496,7 @@ in
};
execjs = attrs: {
propagatedBuildInputs = [ v8 ];
propagatedBuildInputs = [ nodejs.libv8 ];
};
libxml-ruby = attrs: {