args : with args; rec { version = "1.8.17"; src = fetchurl { url = "http://production.cf.rubygems.org/rubygems/${name}.tgz"; sha256 = "068sr55r8wiw55bpf93pp07871cbqhxk9cxma6arhd04j7n8ppph"; }; buildInputs = [ruby makeWrapper]; configureFlags = []; doInstall = fullDepEntry ('' ruby setup.rb --prefix=$out/ wrapProgram $out/bin/gem --prefix RUBYLIB : $out/lib find $out -type f -name "*.rb" | xargs sed -i "s@/usr/bin/env@$(type -p env)@g" mkdir -pv $out/nix-support cat > $out/nix-support/setup-hook <