anchor.diff:      mkdir deps
       depsPathsA=( $depsPaths )
       depsNamesA=( $depsNames )
  +    depsRevsA=( $depsRevs )
       for i in {0..${toString (builtins.length depsNames - 1)}}; do
  -      cp -R ''${depsPathsA[$i]} deps/''${depsNamesA[$i]}
  +      path="deps/''${depsNamesA[$i]}"
  +      cp -R ''${depsPathsA[$i]} "$path"
  +      chmod -R +w "$path"
  +      echo "''${depsRevsA[$i]}" > "$path/.rev"
       done
  -    chmod -R +w deps
       touch deps/.got
       patchShebangs .
  +
  +    for i in deps/*; do
  +      [ -x "$i/configure" ] && ( cd "$i"; ./configure ) || true
  +    done
     '';
   
     postInstall = ''
  
positive.code:     p1_logger = fetchFromGitHub {
        owner = "processone";
        repo = "p1_logger";
        rev = "3e19507fd5606a73694917158767ecb3f5704e3f";
        sha256 = "0mq86gh8x3bgqcpwdjkdn7m3bj2006gbarnj7cn5dfs21m2h2mdn";
      };
      meck = fetchFromGitHub {
        owner = "eproxus";
        repo = "meck";
        rev = "fc362e037f424250130bca32d6bf701f2f49dc75";
        sha256 = "056yca394f8mbg8vwxxlq47dbjx48ykdrg4lvnbi5gfijl786i3s";
      };
      eredis = fetchFromGitHub {
        owner = "wooga";
        repo = "eredis";
        rev = "770f828918db710d0c0958c6df63e90a4d341ed7";
        sha256 = "0qv8hldn5972328pa1qz2lbblw1p2283js5y98dc8papldkicvmm";
      };
  
    };
  
  in stdenv.mkDerivation rec {
    version = "15.11";
    name = "ejabberd-${version}";
  
    src = fetchurl {
      url = "http://www.process-one.net/downloads/ejabberd/${version}/${name}.tgz";
      sha256 = "0sll1si9pd4v7yibzr8hp18hfrbxsa5nj9h7qsldvy7r4md4n101";
    };
  
    nativeBuildInputs = [ fakegit ];
  
negative.code:   ;
  
    configureFlags =
      [ (lib.enableFeature withMysql "mysql")
        (lib.enableFeature withPgsql "pgsql")
        (lib.enableFeature withSqlite "sqlite")
        (lib.enableFeature withPam "pam")
  