@@ -1,4 +1,11 @@
1−{ stdenv, fetchFromGitHub, cmake, jsoncpp, libossp_uuid, zlib, openssl, lib }:
1+{ stdenv, fetchFromGitHub, cmake, jsoncpp, libossp_uuid, zlib, openssl, lib
2+# miscellaneous
3+, brotli, c-ares
4+# databases
5+, sqliteSupport ? true, sqlite
6+, postgresSupport ? false, postgresql
7+, redisSupport ? false, hiredis
8+, mysqlSupport ? false, libmysqlclient, mariadb }:
29
310stdenv.mkDerivation rec {
411 pname = "drogon";
@@ -24,7 +31,13 @@ stdenv.mkDerivation rec {
2431 libossp_uuid
2532 zlib
2633 openssl
27− ];
34+ brotli
35+ c-ares
36+ ] ++ lib.optional sqliteSupport sqlite
37+ ++ lib.optional postgresSupport postgresql
38+ ++ lib.optional redisSupport hiredis
39+ # drogon uses mariadb for mysql (see https://github.com/an-tao/drogon/wiki/ENG-02-Installation#Library-Dependencies)
40+ ++ lib.optional mysqlSupport [ libmysqlclient mariadb ];
2841
2942 patches = [
3043 # this part of the test would normally fail because it attempts to configure a CMake project that uses find_package on itself