anchor.diff:    optNcurses = if libOnly then null else shouldUsePkg ncurses;
     optLibverto = shouldUsePkg libverto;
     optOpenldap = if libOnly then null else shouldUsePkg openldap;
  -  optDb = if libOnly then null else shouldUsePkg db;
   
     # Prefer the openssl implementation
     cryptoStr = if optOpenssl != null then "openssl"
  
positive.code: 
  # Optional Dependencies
  , libedit ? null, readline ? null, ncurses ? null, libverto ? null
  , openldap ? null, db ? null
  
  # Crypto Dependencies
  , openssl ? null, nss ? null, nspr ? null
  
negative.code: 
    installPhase = optionalString libOnly ''
      mkdir -p $out/{bin,include/{gssapi,gssrpc,kadm5,krb5},lib/pkgconfig,sbin,share/{et,man/man1}}
  
      (cd util; make install)
      (cd include; make install)
      (cd lib; make install)
      (cd build-tools; make install)
  
      rm -rf $out/{sbin,share}
      find $out/bin -type f | grep -v 'krb5-config' | xargs rm
    '';
  
    enableParallelBuilding = true;
  