Skip to content

Commit 79f12b7

Browse files
committed
murmur: Add support for PostgreSQL and MySQL / MariaDB databases
1 parent 98105f2 commit 79f12b7

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

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

207-
buildInputs = [ libcap ] ++ lib.optional iceSupport zeroc-ice;
210+
buildInputs = [
211+
libcap
212+
]
213+
++ lib.optional iceSupport zeroc-ice
214+
++ lib.optional serverPostgresqlSupport postgresql;
208215
} source;
209216

210217
overlay =

0 commit comments

Comments
 (0)