anchor.diff:      description = "The Ruby language";
     };
   
  -  passthru = {
  -    # install ruby libs into "$out/${ruby.libPath}"
  -    libPath = "lib/ruby-1.8";
  +  passthru = rec {
  +    majorVersion = "1.8";
  +    minorVersion = "7";
  +    patchLevel = "330";
  +    libPath = "lib/ruby/${majorVersion}";
  +    gemPath = "lib/ruby/gems/${majorVersion}";
     };
   }
  
positive.code:   configureFlags = ["--enable-shared" "--enable-pthread"];
  
    installFlags = stdenv.lib.optionalString docSupport "install-doc";
  
    meta = {
      license = "Ruby";
  
negative.code: in
  
  stdenv.mkDerivation rec {
    version = with passthru; "${majorVersion}.${minorVersion}-p${patchLevel}";
    
    name = "ruby-${version}";
    
    src = fetchurl {
      url = "ftp://ftp.ruby-lang.org/pub/ruby/1.8/${name}.tar.gz";
      sha256 = "0qf50wa1ziziagnxarj8z6yrsivrhchq1j9017ff3z2z7d31l9kc";
    };
  
    # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
  