@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchFromGitHub
1+{ lib, stdenv, fetchFromGitHub, fetchpatch
22, perl, ncurses, zlib, sqlite, libffi
33, autoreconfHook, mcpp, bison, flex, doxygen, graphviz
44, makeWrapper
@@ -19,6 +19,16 @@ stdenv.mkDerivation rec {
1919 sha256 = "1fa6yssgndrln8qbbw2j7j199glxp63irfrz1c2y424rq82mm2r5";
2020 };
2121
22+ patches = [
23+ # Pull pending unstream inclusion fix for ncurses-6.3:
24+ # https://github.com/souffle-lang/souffle/pull/2134
25+ (fetchpatch {
26+ name = "ncurses-6.3.patch";
27+ url = "https://github.com/souffle-lang/souffle/commit/9e4bdf86d051ef2e1b1a1be64aff7e498fd5dd20.patch";
28+ sha256 = "0jw1b6qfdf49dx2qlzn1b2yzrgpnkil4w9y3as1m28w8ws7iphpa";
29+ })
30+ ];
31+
2232 nativeBuildInputs = [ autoreconfHook bison flex mcpp doxygen graphviz makeWrapper perl ];
2333 buildInputs = [ ncurses zlib sqlite libffi ];
2434
@@ -29,7 +39,7 @@ stdenv.mkDerivation rec {
2939
3040 # see 565a8e73e80a1bedbb6cc037209c39d631fc393f and parent commits upstream for
3141 # Wno-error fixes
32− patchPhase = ''
42+ postPatch = ''
3343 substituteInPlace ./src/Makefile.am \
3444 --replace '-Werror' '-Werror -Wno-error=deprecated -Wno-error=other'
3545