diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2021-11-18 22:49:02 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2021-11-18 22:50:11 +0000 |
commit | 7bb21fc6e65911efae2f4bd22743085f25efa4b0 (patch) | |
tree | 5f6cffec4e229ee8f2625ea39a18e6a85389090e /pkgs/applications/networking/sniffers | |
parent | a09bdaae497076c05cfd8faa0e8db16f9dc44c59 (diff) |
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)); | ^~~~~~~~~
Diffstat (limited to 'pkgs/applications/networking/sniffers')
-rw-r--r-- | pkgs/applications/networking/sniffers/sngrep/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/networking/sniffers/sngrep/default.nix b/pkgs/applications/networking/sniffers/sngrep/default.nix index 3b5742ec24739..5bcbac74ca7c2 100644 --- a/pkgs/applications/networking/sniffers/sngrep/default.nix +++ b/pkgs/applications/networking/sniffers/sngrep/default.nix @@ -3,6 +3,7 @@ , autoconf , automake , fetchFromGitHub +, fetchpatch , libpcap , ncurses , openssl @@ -20,6 +21,16 @@ stdenv.mkDerivation rec { sha256 = "sha256-92wPRDFSoIOYFv3XKdsuYH8j3D8kXyg++q6VpIIMGDg="; }; + patches = [ + # Pull fix pending upstream inclusion for ncurses-6.3 support: + # https://github.com/irontec/sngrep/pull/382 + (fetchpatch { + name = "ncurses-6.3.patch"; + url = "https://github.com/irontec/sngrep/commit/d09e1c323dbd7fc899e8985899baec568f045601.patch"; + sha256 = "sha256-nY5i3WQh/oKboEAh4wvxF5Imf2BHYEKdFj+WF1M3SSA="; + }) + ]; + nativeBuildInputs = [ autoconf automake |