anchor.diff:      maintainers = [ lib.maintainers.wkennington ];
     };
   
  -  passthru.ldflags = if unicode then "-lncursesw" else "-lncurses";
  +  passthru.ldflags = "-lncurses";
   }
  
positive.code: , abiVersion ? "5"
  }:
  
  let libSuffix = if stdenv.isDarwin then "dylib" else "so";
  
  in stdenv.mkDerivation rec {
    name = "ncurses-5.9";
  
    src = fetchurl {
  
negative.code:   # When building a wide-character (Unicode) build, create backward
    # compatibility links from the the "normal" libraries to the
    # wide-character libraries (e.g. libncurses.so to libncursesw.so).
    postInstall = ''
      # Determine what suffixes our libraries have
      suffix="$(awk -F': ' 'f{print $3; f=0} /default library suffix/{f=1}' config.log)"
      libs="$(ls $out/lib/pkgconfig | tr ' ' '\n' | sed "s,\(.*\)$suffix\.pc,\1,g")"
      suffixes="$(echo "$suffix" | awk '{for (i=1; i < length($0); i++) {x=substr($0, i+1, length($0)-i); print x}}')"
  
      # Get the path to the config util
      cfg=$(basename $out/bin/ncurses*-config)
  
      for newsuffix in $suffixes ""; do
        # Create a non-abi versioned config util links
        ln -svf $cfg $out/bin/ncurses$newsuffix-config
  
        # Allow for end users who #include <ncurses?w/*.h>
        ln -svf . $out/include/ncurses$newsuffix
  
        for lib in $libs; do
          for dylibtype in so dll dylib; do
            if [ -e "$out/lib/lib''${lib}$suffix.$dylibtype" ]; then
              ln -svf lib''${lib}$suffix.$dylibtype $out/lib/lib$lib$newsuffix.$dylibtype
              ln -svf lib''${lib}$suffix.$dylibtype.${abiVersion} $out/lib/lib$lib$newsuffix.$dylibtype.${abiVersion}
            fi
          done
          for statictype in a dll.a la; do
            if [ -e "$out/lib/lib''${lib}$suffix.$statictype" ]; then
              ln -svf lib''${lib}$suffix.$statictype $out/lib/lib$lib$newsuffix.$statictype
            fi
          done
          ln -svf ''${lib}$suffix.pc $out/lib/pkgconfig/$lib$newsuffix.pc
        done
      done
    '';
  
    preFixup = ''
  