diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2021-11-06 11:32:39 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2021-11-06 11:33:37 +0000 |
commit | f63ada60e443467a5aab30d6c8cc3195fd22636b (patch) | |
tree | 2f5f089e1807f3b2c4e211a425be6ef16b4e3aa3 /pkgs/applications/misc/tasknc | |
parent | 4ce91f33400bb0b633467cfebd2023b1b7b1dbb8 (diff) |
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
Diffstat (limited to 'pkgs/applications/misc/tasknc')
-rw-r--r-- | pkgs/applications/misc/tasknc/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/applications/misc/tasknc/default.nix b/pkgs/applications/misc/tasknc/default.nix index d24a7d3e0d13f..5250581762b08 100644 --- a/pkgs/applications/misc/tasknc/default.nix +++ b/pkgs/applications/misc/tasknc/default.nix @@ -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 |