summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ruby-modules
diff options
context:
space:
mode:
authorMichael Fellinger <michael.fellinger@iohk.io>2020-02-18 22:29:38 +0100
committerMichael Fellinger <michael.fellinger@iohk.io>2020-02-18 22:29:38 +0100
commit84fa1d2fb363a04c729da9058e3ee92d3cff9198 (patch)
tree73afc27ee6ae6d3cb96b8b77a0566fbc8e424c98 /pkgs/development/ruby-modules
parent1b96f9b68c728985bb94bb19c095330538827138 (diff)
rubyWithPackages.libv8: fix compilation
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r--pkgs/development/ruby-modules/gem-config/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix
index 088bcedf6de3..f26e33ca2427 100644
--- a/pkgs/development/ruby-modules/gem-config/default.nix
+++ b/pkgs/development/ruby-modules/gem-config/default.nix
@@ -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: {