diff --git a/pkgs/development/libraries/sofia-sip/default.nix b/pkgs/development/libraries/sofia-sip/default.nix index 8555b4e9617a..d70bd95bef04 100644 --- a/pkgs/development/libraries/sofia-sip/default.nix +++ b/pkgs/development/libraries/sofia-sip/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, glib, openssl, pkg-config, @@ -20,6 +21,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-7QmK2UxEO5lC0KBDWB3bwKTy0Nc7WrdTLjoQYzezoaY="; }; + patches = [ + # Fix build with gcc 14 from https://github.com/freeswitch/sofia-sip/pull/249 + (fetchpatch2 { + name = "sofia-sip-fix-incompatible-pointer-type.patch"; + url = "https://github.com/freeswitch/sofia-sip/commit/46b02f0655af0a9594e805f09a8ee99278f84777.diff"; + hash = "sha256-4uZVtKnXG+BPW8byjd7tu4uEZo9SYq9EzTEvMwG0Bak="; + }) + ]; + buildInputs = [ glib openssl