Skip to content

Commit ccfc91c

Browse files
committed
murmur: Add support for PostgreSQL and MySQL / MariaDB databases
1 parent 25d50af commit ccfc91c

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,6 +38,9 @@
3838
nlohmann_json,
3939
xar,
4040
makeBinaryWrapper,
41+
postgresql,
42+
serverMysqlSupport ? false,
43+
serverPostgresqlSupport ? true,
4144
serverSqliteSupport ? true,
4245
}:
4346

@@ -196,16 +199,20 @@ let
196199
cmakeFlags = [
197200
"-D client=OFF"
198201
(lib.cmakeBool "ice" iceSupport)
199-
(lib.cmakeBool "enable-mysql" false)
200-
(lib.cmakeBool "enable-postgresql" false)
202+
(lib.cmakeBool "enable-mysql" serverMysqlSupport)
203+
(lib.cmakeBool "enable-postgresql" serverPostgresqlSupport)
201204
(lib.cmakeBool "enable-sqlite" serverSqliteSupport)
202205
]
203206
++ lib.optionals iceSupport [
204207
"-D Ice_HOME=${lib.getDev zeroc-ice};${lib.getLib zeroc-ice}"
205208
"-D Ice_SLICE_DIR=${lib.getDev zeroc-ice}/share/ice/slice"
206209
];
207210

208-
buildInputs = [ libcap ] ++ lib.optional iceSupport zeroc-ice;
211+
buildInputs = [
212+
libcap
213+
]
214+
++ lib.optional iceSupport zeroc-ice
215+
++ lib.optional serverPostgresqlSupport postgresql;
209216
} source;
210217

211218
overlay =

0 commit comments

Comments
 (0)