From 404f6698521829cd7a696c5a17480fd8b1515f3f Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Fri, 21 Jan 2011 08:24:46 +0000 Subject: [PATCH] rubygems-1.4.1 svn path=/nixpkgs/trunk/; revision=25653 --- pkgs/development/interpreters/ruby/gems.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/ruby/gems.nix b/pkgs/development/interpreters/ruby/gems.nix index d979fbe2d196..929325836064 100644 --- a/pkgs/development/interpreters/ruby/gems.nix +++ b/pkgs/development/interpreters/ruby/gems.nix @@ -4,10 +4,10 @@ rec { # some packages (eg ruby-debug) still require 1.8. So let's stick to that for # now if nobody has different requirements - version = "1.3.7"; + version = "1.4.1"; src = fetchurl { url = "http://production.cf.rubygems.org/rubygems/${name}.tgz"; - sha256 = "17bwlqxqrjrial111rn395yjx9wyxrmvmj0hgd85bxkkcap912rq"; + sha256 = "189wg1msb4sdjvdzv9ia6q3lvjlygpp67wlbkl7cjb22bpjy4w4b"; }; @@ -18,7 +18,17 @@ rec { ruby setup.rb --prefix=$out/ wrapProgram $out/bin/gem --prefix RUBYLIB : $out/lib:$out/lib find $out -type f -name "*.rb" | xargs sed -i "s@/usr/bin/env@$(type -p env)@g" - '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; + mkdir -pv $out/nix-support + cat > $out/nix-support/setup-hook <