anchor.diff:    # Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
     CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED";
   
  -  nativeBuildInputs = [ pkgconfig ];
  +  nativeBuildInputs = [
  +    pkgconfig
  +  ] ++ lib.optionals (buildPlatform != hostPlatform) [
  +    buildPackages.ncurses buildPackages.stdenv.cc
  +  ];
     buildInputs = lib.optional (mouseSupport && stdenv.isLinux) gpm;
   
     preConfigure = ''
  
positive.code:     sed -i -e 's,LIB_SUFFIX="t,LIB_SUFFIX=",' configure
    '';
  
    selfNativeBuildInput = true;
  
    enableParallelBuilding = true;
  
  
negative.code: , unicode ? true
  
  , gpm
  
  , buildPlatform, hostPlatform
  , buildPackages
  }:
  let
    version = if abiVersion == "5" then "5.9" else "6.0";
  