anchor.diff:        done
       '';
     };
  -  
  -  sqlite3 = { propagatedBuildInputs = [ sqlite ]; };
  -  
  -  rails = { gemFlags = "--no-ri --no-rdoc"; };
  -  
  +
     ncurses = { propagatedBuildInputs = [ ncurses ]; };
  +
  +  ncursesw = { propagatedBuildInputs = [ ncurses ]; };
   
     nix = {
       postInstall = ''
  
positive.code:         zcat ${patch} | patch -p 1
        ''; # */
      };
  
    xapian_full = {
      buildInputs = [ gems.rake zlib libuuid ];
      gemFlags = "--no-rdoc --no-ri";
    };
  
    xapian_full_alaveteli = {
      buildInputs = [ zlib libuuid ];
    };
  
    xapian_ruby = {
      buildInputs = [ zlib libuuid ];
    };
  
    rjb = {
      buildInputs = [ jdk ];
      JAVA_HOME = jdk;
    };
  
    buildr = {
      # Many Buildfiles rely on RUBYLIB containing the current directory
      # (as was the default in Ruby < 1.9.2).
      extraWrapperFlags = "--prefix RUBYLIB : .";
    };
    
    pry = { gemFlags = "--no-ri --no-rdoc"; };
  
    fakes3 = {
      postInstall = ''
        cd $out/${ruby.gemPath}/gems/*
        patch -Np1 -i ${../../ruby-modules/fake-s3-list-bucket.patch}
      '';
    };
  }
  
negative.code:     find "$1" -type f -name "*.rb" | xargs sed -i "s@/usr/bin/env@$(type -p env)@g"
      find "$1" -type f -name "*.mk" | xargs sed -i "s@/usr/bin/env@$(type -p env)@g"
    '';
  
  in
  
  {
    buildr = {
      # Many Buildfiles rely on RUBYLIB containing the current directory
      # (as was the default in Ruby < 1.9.2).
      extraWrapperFlags = "--prefix RUBYLIB : .";
    };
  
    fakes3 = {
      postInstall = ''
        cd $out/${ruby.gemPath}/gems/*
        patch -Np1 -i ${../../ruby-modules/fake-s3-list-bucket.patch}
      '';
    };
  
    ffi = {
      postUnpack = "onetuh";
      buildFlags = ["--with-ffi-dir=${libffi}"];
      NIX_POST_EXTRACT_FILES_HOOK = patchUsrBinEnv;
    };
  
    iconv = { buildInputs = [ libiconvOrEmpty ]; };
  
    libv8 = {
  