anchor.diff:  , db
   , gnused
   , openldap
  -, openssl_1-0-2
  +, openssl
   }:
   
   stdenv.mkDerivation rec {
  
positive.code: { stdenv
  , fetchurl
  , makeWrapper
  
  , apr
  
negative.code:     db
      expat
      openldap
      openssl
    ];
  
    patches = [
  		(fetchTritonPatch {
        rev = "a29a999dbbcc6a7965e65c31ab9bc2938f738f2c";
        file = "a/apr-util/openssl-1.1.patch";
        sha256 = "88225f93632ee4fb2fa1e0c5ee7a177b1299e1b55f644c567b4763f8c8acbe54";
      })
    ];
  
    postPatch = ''
      sed -i 's,BN_init,BN_new,g' configure
    '';
  
    configureFlags = [
      "--with-apr=${apr}"
      "--with-expat=${expat}"
      "--with-crypto"
      "--with-openssl=${openssl}"
      "--with-berkeley-db=${db}"
      "--with-ldap=ldap"
    ];
  