anchor.diff:      version = "7.1.2";
       sha256 = "06plg0bjqgbb0aghpb9qlk8wkp1l2izdlr64vbr5laqyw8jg84zq";
       buildInputs = [ compat tic nbperf ];
  +    MKPIC = if stdenv.isDarwin then "no" else "yes";
       extraPaths = [
         (fetchNetBSD "share/terminfo" "7.1.2" "1z5vzq8cw24j05r6df4vd6r57cvdbv7vbm4h962kplp14xrbg2h3")
       ];
  
positive.code:       "-D__scanflike(a,b)="
        "-D__va_list=va_list"
        "-D__warn_references(a,b)="
      ];
      propagatedBuildInputs = [ compat ];
      MKDOC = "no"; # missing vfontedpr
      patchPhase = ''
        substituteInPlace printw.c \
          --replace "funopen(win, NULL, __winwrite, NULL, NULL)" NULL \
          --replace "__strong_alias(vwprintw, vw_printw)" 'extern int vwprintw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_printw")));'
  
negative.code:         --replace rogue "" \
          --replace sail "" \
          --replace trek "" \
          --replace dab ""
        substituteInPlace Makefile.inc \
          --replace 2555 555 \
          --replace 2550 550
  