* Many buildr Buildfiles rely on RUBYLIB containing the current directory

(as was the default in Ruby < 1.9.2).  So make sure that's the case
  when running buildr.

svn path=/nixpkgs/trunk/; revision=32573
This commit is contained in:
Eelco Dolstra 2012-02-26 11:10:00 +00:00
parent 91e3d54b8f
commit a488f53a54
2 changed files with 9 additions and 1 deletions

View file

@ -31,7 +31,8 @@ let
wrapProgram "$prog" \
--prefix GEM_PATH : "$GEM_PATH" \
--prefix RUBYLIB : "${rubygems}/lib" \
--set RUBYOPT 'rubygems'
--set RUBYOPT rubygems \
$extraWrapperFlags ''${extraWrapperFlagsArray[@]}
done
for prog in $out/gems/*/bin/*; do

View file

@ -61,4 +61,11 @@ in
buildInputs = [ jdk ];
JAVA_HOME = jdk;
};
buildr = {
# Many Buildfiles rely on RUBYLIB containing the current directory
# (as was the default in Ruby < 1.9.2).
extraWrapperFlags = "--prefix RUBYLIB : .";
};
}