anchor.diff:      X11BINDIR = "/bin";
       X11USRLIBDIR = "/lib";
       X11MANDIR = "/share/man";
  -    SHLINKDIR = "/usr/libexec";
  -
  -    HOST_SH = "${bash}/bin/sh";
  -
  -    SHLIB_WARNTEXTREL = "no";
  -    SHLIB_MKMAP = "no";
  -    PRESERVE = "-p";
  -    OBJCOPY = if stdenv.isDarwin then "true" else "objcopy";
  -
  -    MACHINE_ARCH = hostPlatform.parsed.cpu.name;
  -    MACHINE_CPU = hostPlatform.parsed.cpu.name;
   
       # NetBSD makefiles should be able to detect this
       # but without they end up using gcc on Darwin stdenv
       preConfigure = ''
         export HAVE_${if stdenv.cc.isGNU then "GCC" else "LLVM"}=${lib.head (lib.splitString "." (lib.getVersion stdenv.cc.cc))}
  +
         # Parallel building. Needs the space.
         export makeFlags+=" -j $NIX_BUILD_CORES"
       '';
  
positive.code:     version = "7.1.2";
      sha256 = "04djah9dadzw74nswn0xydkxn900kav8xdvxlxdl50nbrynxg9yf";
      buildInputs = [ libterminfo ];
      NIX_CFLAGS_COMPILE = [
        "-D__scanflike(a,b)="
        "-D__va_list=va_list"
  
negative.code:     sha256 = "06plg0bjqgbb0aghpb9qlk8wkp1l2izdlr64vbr5laqyw8jg84zq";
      buildInputs = [ compat tic nbperf ];
      MKPIC = if stdenv.isDarwin then "no" else "yes";
      makeFlags = [ "INCSDIR=/include" ];
      postPatch = ''
        substituteInPlace term.c --replace /usr/share $out/share
      '';
      postInstall = ''
        mkdir -p $out/share/misc
        (cd $NETBSDSRCDIR/share/terminfo && make && make BINDIR=/share install)
      '';
      extraPaths = [
        (fetchNetBSD "share/terminfo" "7.1.2" "1z5vzq8cw24j05r6df4vd6r57cvdbv7vbm4h962kplp14xrbg2h3")
  