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