coturn: add systemd support (#394670)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user