anchor.diff:    ctlpath = lib.makeBinPath [ bash gnused gnugrep coreutils utillinux procps ];
   
   in stdenv.mkDerivation rec {
  -  version = "17.07";
  +  version = "18.01";
     name = "ejabberd-${version}";
   
     src = fetchurl {
       url = "http://www.process-one.net/downloads/ejabberd/${version}/${name}.tgz";
  -    sha256 = "1p8ppp2czjgnq8xnhyksd82npvvx99fwr0g3rrq1wvnwh2vgb8km";
  +    sha256 = "01i2n8mlgw293jdf4172f9q8ca8m35vysjws791p7nynpfdb4cn6";
     };
   
     nativeBuildInputs = [ fakegit ];
   
  -  buildInputs = [ erlang openssl expat libyaml ]
  +  buildInputs = [ erlang openssl expat libyaml gd ]
       ++ lib.optional withSqlite sqlite
       ++ lib.optional withPam pam
       ++ lib.optional withZlib zlib
  
positive.code: 
      outputHashMode = "recursive";
      outputHashAlgo = "sha256";
      outputHash = "1q9yzccn4zf5i4hibq1r0i34q4986a93ph4792l1ph07aiisc8p7";
    };
  
    configureFlags =
  
negative.code:       $out/sbin/ejabberdctl
    '';
  
    meta = with stdenv.lib; {
      description = "Open-source XMPP application server written in Erlang";
      license = licenses.gpl2;
      homepage = http://www.ejabberd.im;
      platforms = platforms.linux;
      maintainers = with maintainers; [ sander abbradar ];
      broken = withElixir;
    };
  }
  