git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #127604 from urlordjames/drogon_options
commit565a0d3b9dc70dce8d17e1eba8a42847fa2d3234 authorSandro <sandro.jaeckel@gmail.com> dateTue 22 Jun 2021, 17:59 (5 years ago) parentc1e686d6e44a67
1 file changed+15−2
pkgs/development/libraries/drogon/default.nix+15−2
pkgs/development/libraries/drogon/default.nix+15−2
@@ -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