sngrep: pull upstream fix for ncurses-6.3
Without the fix build on ncurses-6.3 fails as:
curses/ui_msg_diff.c: In function 'msg_diff_draw_message':
curses/ui_msg_diff.c:190:5: error: format not a string literal and no format arguments [-Werror=format-security]
190 | mvwprintw(win, 0, 0, sip_get_msg_header(msg, header));
| ^~~~~~~~~
commit7bb21fc6e65911efae2f4bd22743085f25efa4b0
authorSergei Trofimovich <slyich@gmail.com>
dateThu 18 Nov 2021, 22:49 (5 years ago)
parenta09bdaa
pkgs/applications/networking/sniffers/sngrep/default.nix+11
@@ -3,6 +3,7 @@
33, autoconf
44, automake
55, fetchFromGitHub
6+, fetchpatch
67, libpcap
78, ncurses
89, openssl
@@ -20,6 +21,16 @@ stdenv.mkDerivation rec {
2021 sha256 = "sha256-92wPRDFSoIOYFv3XKdsuYH8j3D8kXyg++q6VpIIMGDg=";
2122 };
2223
24+ patches = [
25+ # Pull fix pending upstream inclusion for ncurses-6.3 support:
26+ # https://github.com/irontec/sngrep/pull/382
27+ (fetchpatch {
28+ name = "ncurses-6.3.patch";
29+ url = "https://github.com/irontec/sngrep/commit/d09e1c323dbd7fc899e8985899baec568f045601.patch";
30+ sha256 = "sha256-nY5i3WQh/oKboEAh4wvxF5Imf2BHYEKdFj+WF1M3SSA=";
31+ })
32+ ];
33+
2334 nativeBuildInputs = [
2435 autoconf
2536 automake