anchor.diff:    name = "lsof-${version}";
     version = "4.89";
   
  +  depsBuildBuild = [ buildPackages.stdenv.cc ];
     buildInputs = [ ncurses ];
   
     src = fetchurl {
  
positive.code: { stdenv, fetchurl, ncurses }:
  
  let dialect = with stdenv.lib; last (splitString "-" stdenv.system); in
  
  
negative.code: 
    # Stop build scripts from searching global include paths
    LSOF_INCLUDE = "${stdenv.cc.libc}/include";
    configurePhase = "LINUX_CONF_CC=$CC_FOR_BUILD LSOF_CC=$CC LSOF_AR=\"$AR cr\" LSOF_RANLIB=$RANLIB ./Configure -n ${dialect}";
    preBuild = ''
      sed -i Makefile -e 's/^CFGF=/&	-DHASIPv6=1/;' -e 's/-lcurses/-lncurses/'
      for filepath in $(find dialects/${dialect} -type f); do
  