Skip to content

Commit 4511241

Browse files
authored
sofia-sip: fix build with gcc-14 (#368610)
2 parents 0d7cc71 + 4ec084e commit 4511241

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkgs/development/libraries/sofia-sip/default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5+
fetchpatch2,
56
glib,
67
openssl,
78
pkg-config,
@@ -20,6 +21,15 @@ stdenv.mkDerivation rec {
2021
sha256 = "sha256-7QmK2UxEO5lC0KBDWB3bwKTy0Nc7WrdTLjoQYzezoaY=";
2122
};
2223

24+
patches = [
25+
# Fix build with gcc 14 from https://github.com/freeswitch/sofia-sip/pull/249
26+
(fetchpatch2 {
27+
name = "sofia-sip-fix-incompatible-pointer-type.patch";
28+
url = "https://github.com/freeswitch/sofia-sip/commit/46b02f0655af0a9594e805f09a8ee99278f84777.diff";
29+
hash = "sha256-4uZVtKnXG+BPW8byjd7tu4uEZo9SYq9EzTEvMwG0Bak=";
30+
})
31+
];
32+
2333
buildInputs = [
2434
glib
2535
openssl

0 commit comments

Comments
 (0)