Commit 31a950ea authored by Niklas Korz's avatar Niklas Korz
Browse files
parent 3f5959b2
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
diff --git a/BUILD.gn b/BUILD.gn
index 598bbbcb72..62c6c5a187 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -138,7 +138,7 @@ config("library_impl_config") {
 # target_defaults and direct_dependent_settings.
 config("common_inherited_config") {
   defines = []
-  cflags = [ "-fvisibility=default" ]
+  cflags = [ "-fvisibility=default", "-Wno-error=c++11-narrowing-const-reference" ]
   ldflags = [ "-lavutil", "-lavformat", "-lavcodec" ]
 
   if (rtc_dlog_always_on) {
+1 −15
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ let
in
stdenv.mkDerivation {
  pname = "livekit-libwebrtc";
  version = "125-unstable-2025-03-24";
  version = "125-unstable-2025-07-25";

  gclientDeps = gclient2nix.importGclientDeps ./sources.json;
  sourceRoot = "src";
@@ -100,20 +100,6 @@ stdenv.mkDerivation {
    })
    # Required for dynamically linking to ffmpeg libraries and exposing symbols
    ./0001-shared-libraries.patch
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    ./0002-disable-narrowing-const-reference.patch
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [
    # GCC does not support C11 _Generic in C++ mode. Fixes boringssl build with GCC
    (fetchpatch {
      name = "fix-gcc-c11-generic-boringssl";

      url = "https://github.com/google/boringssl/commit/c70190368c7040c37c1d655f0690bcde2b109a0d.patch";
      hash = "sha256-xkmYulDOw5Ny5LOCl7rsheZSFbSF6md2NkZ3+azjFQk=";
      stripLen = 1;
      extraPrefix = "third_party/boringssl/src/";
    })
  ];

  postPatch = ''
+4 −4
Original line number Diff line number Diff line
{
    "src": {
        "args": {
            "hash": "sha256-LUncFGXaYVUrBdWD1Xx3MZe5GzmjJuJtDebAMb8jass=",
            "hash": "sha256-zSWjPxcrvLpi+zaJ+GReG3YsjPKqxBdkKfe8Gj/O0dA=",
            "owner": "webrtc-sdk",
            "repo": "webrtc",
            "rev": "7ec4c03bff7f7ce117dc9100f081d031d946d995"
            "rev": "db3ba7af86dd6d48174ed35387d11c0794f1a21b"
        },
        "fetcher": "fetchFromGitHub"
    },
@@ -51,8 +51,8 @@
    },
    "src/third_party/boringssl/src": {
        "args": {
            "hash": "sha256-baa6L6h1zVBHen/YFVtF+9fhYWC4ZGbMUSO8L1VNFjw=",
            "rev": "f94f3ed3965ea033001fb9ae006084eee408b861",
            "hash": "sha256-Ln6rnbn2hwszst24E/6EpP2C3Scoppe7wvVKFtxuPjQ=",
            "rev": "12391e648d3c6f04a718721568cc89208b780654",
            "url": "https://boringssl.googlesource.com/boringssl.git"
        },
        "fetcher": "fetchFromGitiles"