rubyWithPackages.libv8: fix compilation

This commit is contained in:
Michael Fellinger 2020-02-18 22:29:38 +01:00
parent 1b96f9b68c
commit 84fa1d2fb3
No known key found for this signature in database
GPG key ID: F4D029589C005F89

View file

@ -294,6 +294,12 @@ in
libv8 = attrs: {
buildInputs = [ which v8 python ];
buildFlags = [ "--with-system-v8=true" ];
dontBuild = false;
postPatch = ''
substituteInPlace ext/libv8/extconf.rb \
--replace "location = Libv8::Location::Vendor.new" \
"location = Libv8::Location::System.new"
'';
};
execjs = attrs: {