anchor.diff:    # TODO: Fix bin/ds-logpipe.py, bin/logconv, bin/cl-dump
   
     patches = [ ./perl-path.patch
  -    # https://fedorahosted.org/389/ticket/48354
  -    (fetchpatch {
  -      name = "389-ds-base-CVE-2016-5416.patch";
  -      url = "https://fedorahosted.org/389/changeset/3c2cd48b7d2cb0579f7de6d460bcd0c9bb1157bd/?format=diff&new=3c2cd48b7d2cb0579f7de6d460bcd0c9bb1157bd";
  -      addPrefixes = true;
  -      sha256 = "1kv3a3di1cihkaf8xdbb5mzvhm4c3frx8rc5mji8xgjyj9ni6xja";
  -    })
     ];
   
     preConfigure = ''
  
positive.code:     "--with-sasl=${cyrus_sasl.dev}"
      "--with-netsnmp=${net_snmp}"
    ];
    
    preInstall = ''
      # The makefile doesn't create this directory for whatever reason
      mkdir -p $out/lib/dirsrv
  
negative.code: , db, cyrus_sasl, svrcore, icu, net_snmp, kerberos, pcre, perlPackages
  }:
  let
    version = "1.3.5.15";
  in
  stdenv.mkDerivation rec {
    name = "389-ds-base-${version}";
  
    src = fetchurl {
      url = "http://directory.fedoraproject.org/binaries/${name}.tar.bz2";
      sha256 = "1z17nnr4axndjyp413kyxb6iwdfky7nlsjhlc0klvdi2ai983p91";
    };
  
    buildInputs = [
  