aewan: fix build against ncurses-6.3

`ncuses-6.3` added printf-style function attributes and now makes
it easier to catch cases when user input is used in palce of format
string when built with CFLAGS=-Werror=format-security:

aewan.c: In function 'paint_screen':
aewan.c:147:7: error: format not a string literal and no format arguments [-Werror=format-security]
147 | printw(msg);
| ^~~~~~

Let's pull a patch pending upstream inclusion.

+12 -1
+12 -1
pkgs/applications/editors/aewan/default.nix
··· 1 - { lib, stdenv, fetchurl, zlib, ncurses }: 1 + { lib, stdenv, fetchurl, fetchpatch, zlib, ncurses }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "aewan"; ··· 8 8 url = "mirror://sourceforge/aewan/${pname}-${version}.tar.gz"; 9 9 sha256 = "5266dec5e185e530b792522821c97dfa5f9e3892d0dca5e881d0c30ceac21817"; 10 10 }; 11 + 12 + patches = [ 13 + # Pull patch pending upstream inclusion: 14 + # https://sourceforge.net/p/aewan/bugs/13/ 15 + (fetchpatch { 16 + url = "https://sourceforge.net/p/aewan/bugs/13/attachment/aewan-cvs-ncurses-6.3.patch"; 17 + sha256 = "0pgpk1l3d6d5y37lvvavipwnmv9gmpfdy21jkz6baxhlkgf43r4p"; 18 + # patch is in CVS diff format, add 'a/' prefix 19 + extraPrefix = ""; 20 + }) 21 + ]; 11 22 12 23 buildInputs = [ zlib ncurses ]; 13 24