rPackages.V8: use nodejs.libv8

This commit is contained in:
Thomas Gerbet 2024-05-30 11:56:30 +02:00
parent 826cc7fa1c
commit 214a77ff83

View File

@ -483,7 +483,7 @@ let
units = [ pkgs.udunits ];
unigd = [ pkgs.pkg-config ];
vdiffr = [ pkgs.libpng.dev ];
V8 = [ pkgs.v8 ];
V8 = [ pkgs.nodejs.libv8 ];
XBRL = with pkgs; [ zlib libxml2.dev ];
XLConnect = [ pkgs.jdk ];
xml2 = [ pkgs.libxml2.dev ] ++ lib.optionals stdenv.isDarwin [ pkgs.perl ];
@ -1407,12 +1407,15 @@ let
V8 = old.V8.overrideAttrs (attrs: {
postPatch = ''
substituteInPlace configure \
--replace " -lv8_libplatform" ""
--replace-fail " -lv8_libplatform" ""
# Bypass the test checking if pointer compression is needed
substituteInPlace configure \
--replace-fail "./pctest1" "true"
'';
preConfigure = ''
export INCLUDE_DIR=${pkgs.v8}/include
export LIB_DIR=${pkgs.v8}/lib
export INCLUDE_DIR=${pkgs.nodejs.libv8}/include
export LIB_DIR=${pkgs.nodejs.libv8}/lib
patchShebangs configure
'';