Unverified Commit beb9d523 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

coturn: add systemd support (#394670)

parents d8c42f6f 0e68b259
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  libmicrohttpd,
  sqlite,
  nixosTests,
  systemdMinimal,
}:

stdenv.mkDerivation rec {
@@ -26,12 +27,16 @@ stdenv.mkDerivation rec {
    pkg-config
  ];

  buildInputs = [
  buildInputs =
    [
      openssl
      (libevent.override { inherit openssl; })
      libprom
      libmicrohttpd
      sqlite.dev
    ]
    ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform systemdMinimal) [
      systemdMinimal
    ];

  patches = [