mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
rPackages.V8: use nodejs.libv8
This commit is contained in:
parent
826cc7fa1c
commit
214a77ff83
@ -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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user