tasknc: fix build against upcoming ncurses-6.3

Without the change build fails as:

    src/keys.c:122:6: error: 'KEY_EVENT' undeclared here (not in a function); did you mean 'KEY_SLEFT'?
      122 |     {KEY_EVENT, "event"},
          |      ^~~~~~~~~
          |      KEY_SLEFT
This commit is contained in:
Sergei Trofimovich 2021-11-06 11:32:39 +00:00
parent 4ce91f3340
commit f63ada60e4

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper, perl, ncurses5, taskwarrior }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, perl, ncurses5, taskwarrior }:
stdenv.mkDerivation rec {
version = "2020-12-17";
@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
sha256 = "0jrv2k1yizfdjndbl06lmy2bb62ky2rjdk308967j31c5kqqnw56";
};
# Pull pending upstream inclusion for ncurses-6.3:
# https://github.com/lharding/tasknc/pull/57
patches = [
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/lharding/tasknc/commit/f74ea0641e9bf287acf22fac9f6eeea571b01800.patch";
sha256 = "18a90zj85sw2zfnfcv055nvi0lx3h8lcgsyabdfk94ksn78pygrv";
})
];
nativeBuildInputs = [
makeWrapper
perl # For generating the man pages with pod2man