anchor.diff:    patches =
       [ ./link-against-ncurses.patch
         ./no-arch_only-6.3.patch
  -    ];
  +    ]
  +    ++
  +    (let
  +       patch = nr: sha256:
  +         fetchurl {
  +           url = "mirror://gnu/readline/readline-6.3-patches/readline63-${nr}";
  +           inherit sha256;
  +         };
  +     in
  +       import ./readline-6.3-patches.nix patch);
  +
  +  # Don't run the native `strip' when cross-compiling.
  +  dontStrip = stdenv ? cross;
   
     meta = with stdenv.lib; {
       description = "Library for interactive line editing";
  
positive.code: { fetchzip, stdenv, ncurses }:
  
  stdenv.mkDerivation (rec {
    name = "readline-6.3p08";
  
    src = fetchzip {
      #url = "mirror://gnu/readline/${name}.tar.gz";
      url = "http://git.savannah.gnu.org/cgit/readline.git/snapshot/"
        + "readline-a73b98f779b388a5d0624e02e8bb187246e3e396.tar.gz";
      sha256 = "19ji3wrv4fs79fd0nkacjy9q94pvy2cm66yb3aqysahg0cbrz5l1";
    };
  
    propagatedBuildInputs = [ncurses];
  
negative.code:     platforms = platforms.unix;
    };
  }
  