about summary refs log tree commit diff
path: root/pkgs/development/interpreters/ruby
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2013-06-18 17:14:17 +0200
committerSander van der Burg <svanderburg@gmail.com>2013-06-18 17:14:17 +0200
commitaeaaa0a7e71945465fce54764e0b98fe4bfb7706 (patch)
tree72873a783cea7a196f00ce5e8a4514a30b9a464f /pkgs/development/interpreters/ruby
parenta8f153267c4f1c2fa7428096cf626b2a631033f8 (diff)
downloadnixlib-aeaaa0a7e71945465fce54764e0b98fe4bfb7706.tar
nixlib-aeaaa0a7e71945465fce54764e0b98fe4bfb7706.tar.gz
nixlib-aeaaa0a7e71945465fce54764e0b98fe4bfb7706.tar.bz2
nixlib-aeaaa0a7e71945465fce54764e0b98fe4bfb7706.tar.lz
nixlib-aeaaa0a7e71945465fce54764e0b98fe4bfb7706.tar.xz
nixlib-aeaaa0a7e71945465fce54764e0b98fe4bfb7706.tar.zst
nixlib-aeaaa0a7e71945465fce54764e0b98fe4bfb7706.zip
libv8 still broken in chroots, but this scons patch script fixes it
Diffstat (limited to 'pkgs/development/interpreters/ruby')
-rw-r--r--pkgs/development/interpreters/ruby/patches.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/ruby/patches.nix b/pkgs/development/interpreters/ruby/patches.nix
index 55e62594c847..3c495526c8b9 100644
--- a/pkgs/development/interpreters/ruby/patches.nix
+++ b/pkgs/development/interpreters/ruby/patches.nix
@@ -35,12 +35,17 @@ in
       EOF
       chmod +x $TMPDIR/g++
       
-      
       export CXX=$TMPDIR/g++
       export AR=$(type -p ar)
     '';
     buildInputs = [ python ];
-    NIX_POST_EXTRACT_FILES_HOOK = patchUsrBinEnv;
+    NIX_POST_EXTRACT_FILES_HOOK = writeScript "patch-scons" ''
+      #!/bin/sh
+      for i in `find "$1" -name scons`
+      do
+          sed -i -e "s@/usr/bin/env@$(type -p env)@g" $i
+      done
+    '';
   };
   
   sqlite3 = { propagatedBuildInputs = [ sqlite ]; };