Merge pull request #204322 from emmanuelrosa/aerc-fix

This commit is contained in:
Sandro 2022-12-04 22:56:59 +01:00 committed by GitHub
commit 04a747427a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@
, python3 , python3
, w3m , w3m
, dante , dante
, gawk
}: }:
buildGoModule rec { buildGoModule rec {
@ -46,7 +47,7 @@ buildGoModule rec {
python3.pkgs.colorama python3.pkgs.colorama
]; ];
buildInputs = [ python3 notmuch ]; buildInputs = [ python3 notmuch gawk ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -57,10 +58,13 @@ buildGoModule rec {
''; '';
postFixup = '' postFixup = ''
wrapProgram $out/bin/aerc --prefix PATH ":" \ wrapProgram $out/bin/aerc \
"${lib.makeBinPath [ ncurses ]}" --prefix PATH ":" "${lib.makeBinPath [ ncurses ]}"
wrapProgram $out/share/aerc/filters/html --prefix PATH ":" \ wrapProgram $out/share/aerc/filters/html \
${lib.makeBinPath [ w3m dante ]} --prefix PATH ":" ${lib.makeBinPath [ w3m dante ]}
wrapProgram $out/share/aerc/filters/html-unsafe \
--prefix PATH ":" ${lib.makeBinPath [ w3m dante ]}
patchShebangs $out/share/aerc/filters
''; '';
meta = with lib; { meta = with lib; {