anchor.diff:      sha256 = "1pjy4lylx7dww1fp2mk5ikya5vxaf97z70279j81n74vn12ljg2m";
     };
   
  -  nativeBuildInputs = [ perl makeWrapper ] ++ optional (optBind != null) autoreconfHook;
  -  buildInputs = [ optBind optOpenldap ];
  -
  -  postPatch = optionalString (optBind != null) ''
  -    # Don't use the built in bind
  -    #rm -rf bind
  -
  -    # Use our prebuilt version of bind
  -    #ln -sv ${optBind} bind
  -    #
  -    # Don't build an internal version of bind
  -    #sed -i 's,^\(.*SUBDIRS.*\)bind\(.*\)$,\1\2,' Makefile.am
  -
  -    # Use shared bind libraries instead of static
  -    grep -r 'bind/lib' . | awk -F: '{print $1}' | sort | uniq | xargs sed \
  -      -e "s,[^ ]*bind/lib/lib\([^.]*\)\.a,-l\1,g" \
  -      -i
  -  '';
  +  nativeBuildInputs = [ perl makeWrapper ];
  +  buildInputs = [ optOpenldap ];
   
     preConfigure = ''
       sed -i "includes/dhcpd.h" \
  
positive.code: , nettools, iputils, iproute, coreutils, gnused
  
  # Optional Dependencies
  , bind ? null, openldap ? null
  }:
  
  with stdenv;
  let
    optBind = shouldUsePkg bind;
    optOpenldap = shouldUsePkg openldap;
  in
  with stdenv.lib;
  
negative.code:     (mkEnable false                 "use-sockets"    null)
      (mkEnable false                 "secs-byteorder" null)
      (mkEnable false                 "log-pid"        null)
      (mkWith   false                 "libbind"        null)
      (mkWith   (optOpenldap != null) "ldap"           null)
      (mkWith   (optOpenldap != null) "ldapcrypto"     null)
    ];
  