Now msfweb works with user-installed Ruby on rails.

svn path=/nixpkgs/trunk/; revision=11567
This commit is contained in:
Michael Raskin 2008-04-11 10:40:30 +00:00
parent b40945afba
commit a082b5df68

View File

@ -13,12 +13,11 @@ rec {
ensureDir $out/bin
cp -r * $out/share/msf
ln -s $out/share/msf/msf* $out/bin
sed -e 's@#!/usr/bin/env ruby@#! ${ruby}/bin/ruby@' -i $out/bin/msf*
sed -e 's@#!/usr/bin/env ruby@#! ${ruby}/bin/ruby@' -i $out/share/msf/msf*
for i in $out/bin/*; do
wrapProgram $i --prefix RUBYLIB : $out/share/msf/lib
for i in $out/share/msf/msf*; do
makeWrapper $i $out/bin/$(basename $i) --prefix RUBYLIB : $out/share/msf/lib
done
'') ["minInit" "defEnsureDir" "doUnpack" "addInputs"];