diff options
author | Evgeny Egorochkin <phreedom.stdin@gmail.com> | 2010-10-26 01:15:42 +0000 |
---|---|---|
committer | Evgeny Egorochkin <phreedom.stdin@gmail.com> | 2010-10-26 01:15:42 +0000 |
commit | 93129530a973d275666f9401f787ccd7612ba608 (patch) | |
tree | f091afdccdb2a35d87bea4bd4216192657f53013 /pkgs/development/ruby-modules | |
parent | 3748bba1268f7fa2f518e4ba452dd868bc17d5ad (diff) |
Rake: Fix build. Patch by Ilya Cassina.
svn path=/nixpkgs/trunk/; revision=24480
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r-- | pkgs/development/ruby-modules/rake/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/ruby-modules/rake/default.nix b/pkgs/development/ruby-modules/rake/default.nix index 7e724f9773af..00bad68b695e 100644 --- a/pkgs/development/ruby-modules/rake/default.nix +++ b/pkgs/development/ruby-modules/rake/default.nix @@ -7,13 +7,16 @@ stdenv.mkDerivation { 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 = '' ensureDir $out/lib ensureDir $out/bin - ruby setup.rb config --prefix=$out - # --bindir $out/bin --libdir $out/lib - ruby setup.rb setup - ruby setup.rb install + export DESTDIR=$out + ruby install.rb ''; } |