git.iko.soy/typeable/nixpkgs
on master help sign in
drogon: add options for optional dependencies
commit6e44a67726450fceb43281536cab27b7f3f93b22 authorurlordjames <urlordjames@gmail.com> dateSun 20 Jun 2021, 18:02 (5 years ago) parent23c5d04
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