Skip to content

Commit 691e7d8

Browse files
committed
murmur: Add support for PostgreSQL and MySQL / MariaDB databases
1 parent 7d2e8bb commit 691e7d8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pkgs/applications/networking/mumble/default.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
nlohmann_json,
3939
xar,
4040
makeBinaryWrapper,
41+
postgresql,
4142
spdlog,
4243
utfcpp,
44+
serverMysqlSupport ? false,
45+
serverPostgresqlSupport ? true,
4346
serverSqliteSupport ? true,
4447
}:
4548

@@ -202,16 +205,20 @@ let
202205
cmakeFlags = [
203206
"-D client=OFF"
204207
(lib.cmakeBool "ice" iceSupport)
205-
(lib.cmakeBool "enable-mysql" false)
206-
(lib.cmakeBool "enable-postgresql" false)
208+
(lib.cmakeBool "enable-mysql" serverMysqlSupport)
209+
(lib.cmakeBool "enable-postgresql" serverPostgresqlSupport)
207210
(lib.cmakeBool "enable-sqlite" serverSqliteSupport)
208211
]
209212
++ lib.optionals iceSupport [
210213
"-D Ice_HOME=${lib.getDev zeroc-ice};${lib.getLib zeroc-ice}"
211214
"-D Ice_SLICE_DIR=${lib.getDev zeroc-ice}/share/ice/slice"
212215
];
213216

214-
buildInputs = [ libcap ] ++ lib.optional iceSupport zeroc-ice;
217+
buildInputs = [
218+
libcap
219+
]
220+
++ lib.optional iceSupport zeroc-ice
221+
++ lib.optional serverPostgresqlSupport postgresql;
215222
} source;
216223

217224
overlay =

0 commit comments

Comments
 (0)