aerc: add dependency on ncurses for unknown terminals

The TUI library aerc uses, tcell, comes with a built-in database of
terminal definitions.  For terminals not in this database (e.g.
Alacritty), an entry is generated dynamically using infocmp, part of
ncurses' dev output.
This commit is contained in:
Aluísio Augusto Silva Gonçalves 2019-07-29 18:00:29 -03:00
parent 72e547e2ad
commit 67912138ea
No known key found for this signature in database
GPG Key ID: DA6EA2FACDB1CBD2

View File

@ -1,5 +1,5 @@
{ stdenv, buildGoModule, fetchurl
, go, scdoc
, go, ncurses, scdoc
, python3, perl, w3m, dante
}:
@ -38,7 +38,8 @@ buildGoModule rec {
'';
postFixup = ''
wrapProgram $out/bin/aerc --prefix PATH ":" "$out/share/aerc/filters"
wrapProgram $out/bin/aerc --prefix PATH ":" \
"$out/share/aerc/filters:${stdenv.lib.makeBinPath [ ncurses.dev ]}"
wrapProgram $out/share/aerc/filters/html --prefix PATH ":" \
${stdenv.lib.makeBinPath [ w3m dante ]}
'';