3
0
Fork 0
forked from mirrors/nixpkgs

Get rid of old rake derivation that doesn't build

This commit is contained in:
Evgeny Egorochkin 2013-09-02 23:50:19 +03:00
parent bb440b3612
commit ddd1f7b52b
2 changed files with 1 additions and 23 deletions

View file

@ -1,22 +0,0 @@
{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];
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/'
'';
buildPhase = "true";
installPhase = ''
mkdir -p $out/lib
mkdir -p $out/bin
export DESTDIR=$out
ruby install.rb
'';
}

View file

@ -3206,7 +3206,7 @@ let
rubyLibs = recurseIntoAttrs (callPackage ../development/interpreters/ruby/libs.nix { });
rake = callPackage ../development/ruby-modules/rake { };
rake = rubyLibs.rake;
rubySqlite3 = callPackage ../development/ruby-modules/sqlite3 { };