anchor.diff:        -e 's,\(^ *JOT=\).*,\1,' \
         -e 's,\(^ *CONNLOCKDIR=\).*,\1/var/lock/ejabberdctl,' \
         $out/sbin/ejabberdctl
  +    wrapProgram $out/lib/eimp-*/priv/bin/eimp --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ libpng libjpeg libwebp ]}"
     '';
   
     meta = with stdenv.lib; {
  
positive.code: 
      outputHashMode = "recursive";
      outputHashAlgo = "sha256";
      outputHash = "1v3h0c7kfifb6wsfxyv5j1wc7rlxbb7r0pgd4s340wiyxnllzzhk";
    };
  
    configureFlags =
  
negative.code:   ctlpath = lib.makeBinPath [ bash gnused gnugrep coreutils utillinux procps ];
  
  in stdenv.mkDerivation rec {
    version = "18.06";
    name = "ejabberd-${version}";
  
    src = fetchurl {
      url = "https://www.process-one.net/downloads/ejabberd/${version}/${name}.tgz";
      sha256 = "1c4h6qrckihm8v4vm52h31j5dxg7247vk374rwz41idfb25vx7dc";
    };
  
    nativeBuildInputs = [ fakegit ];
  
    buildInputs = [ erlang openssl expat libyaml gd makeWrapper ]
      ++ lib.optional withSqlite sqlite
      ++ lib.optional withPam pam
      ++ lib.optional withZlib zlib
  