coturn: add systemd support (#394670)

This commit is contained in:
h7x4
2025-05-05 12:53:47 +02:00
committed by GitHub
2 changed files with 14 additions and 8 deletions
+2 -1
View File
@@ -363,7 +363,7 @@ in
chmod 640 ${runConfig}
'';
serviceConfig = rec {
Type = "simple";
Type = "notify";
ExecStart = utils.escapeSystemdExecArgs [
(lib.getExe' pkgs.coturn "turnserver")
"-c"
@@ -413,6 +413,7 @@ in
[
"AF_INET"
"AF_INET6"
"AF_UNIX"
]
++ lib.optionals (cfg.listening-ips == [ ]) [
# only used for interface discovery when no listening ips are configured
+12 -7
View File
@@ -9,6 +9,7 @@
libmicrohttpd,
sqlite,
nixosTests,
systemdMinimal,
}:
stdenv.mkDerivation rec {
@@ -26,13 +27,17 @@ stdenv.mkDerivation rec {
pkg-config
];
buildInputs = [
openssl
(libevent.override { inherit openssl; })
libprom
libmicrohttpd
sqlite.dev
];
buildInputs =
[
openssl
(libevent.override { inherit openssl; })
libprom
libmicrohttpd
sqlite.dev
]
++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform systemdMinimal) [
systemdMinimal
];
patches = [
./pure-configure.patch