2008-10-05 11:00:56 +02:00
|
|
|
{stdenv, fetchurl, ruby}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "rake-0.8.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://rubyforge.org/frs/download.php/29752/rake-0.8.1.tgz";
|
|
|
|
sha256 = "1kggvkkj609hj1xvpadzchki66i7ynz3qq4nc2hmfkf536fx8c03";
|
|
|
|
};
|
|
|
|
buildInputs = [ruby];
|
2010-10-26 03:15:42 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i install.rb \
|
|
|
|
-e 's/$bindir = destdir + $bindir/prefix = CONFIG["prefix"];$bindir = $bindir.slice(prefix.length..$bindir.length);$bindir = destdir + $bindir/' \
|
|
|
|
-e 's/$sitedir = destdir + $sitedir/$sitedir = $sitedir.slice(prefix.length..$sitedir.length);$sitedir = destdir + $sitedir/'
|
|
|
|
'';
|
2008-10-05 11:00:56 +02:00
|
|
|
buildPhase = "true";
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib
|
|
|
|
mkdir -p $out/bin
|
2010-10-26 03:15:42 +02:00
|
|
|
export DESTDIR=$out
|
|
|
|
ruby install.rb
|
2008-10-05 11:00:56 +02:00
|
|
|
'';
|
|
|
|
}
|