rubyWithPackages.libv8: fix compilation (#80470)

rubyWithPackages.libv8: fix compilation
This commit is contained in:
Samuel Leathers
2020-02-19 12:26:34 -05:00
committed by GitHub

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: {