summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmmanuel Rosa <emmanuelrosa@protonmail.com>2022-12-03 12:36:33 -0500
committerEmmanuel Rosa <emmanuelrosa@protonmail.com>2022-12-04 16:31:32 -0500
commit8a518d43000bae6d2b3d88cdae8631335bd10337 (patch)
treeec264aa26610faa025f621a9b8a9062c6bc6cbe2
parent6edf855c1a38185c028c5eb1fe555c5533823c0a (diff)
downloadnixpkgs-8a518d43000bae6d2b3d88cdae8631335bd10337.tar
nixpkgs-8a518d43000bae6d2b3d88cdae8631335bd10337.tar.gz
nixpkgs-8a518d43000bae6d2b3d88cdae8631335bd10337.tar.bz2
nixpkgs-8a518d43000bae6d2b3d88cdae8631335bd10337.tar.lz
nixpkgs-8a518d43000bae6d2b3d88cdae8631335bd10337.tar.xz
nixpkgs-8a518d43000bae6d2b3d88cdae8631335bd10337.tar.zst
nixpkgs-8a518d43000bae6d2b3d88cdae8631335bd10337.zip
aerc: substitute awk in filters
A number of aerc filters are AWK scripts which by default begin with:

This commit substitutes AWK with the the absolute path to gawk.
-rw-r--r--pkgs/applications/networking/mailreaders/aerc/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/applications/networking/mailreaders/aerc/default.nix b/pkgs/applications/networking/mailreaders/aerc/default.nix
index d875e39fb7a..ddc0f4b932a 100644
--- a/pkgs/applications/networking/mailreaders/aerc/default.nix
+++ b/pkgs/applications/networking/mailreaders/aerc/default.nix
@@ -7,6 +7,7 @@
 , python3
 , w3m
 , dante
+, gawk
 }:
 
 buildGoModule rec {
@@ -46,7 +47,7 @@ buildGoModule rec {
     python3.pkgs.colorama
   ];
 
-  buildInputs = [ python3 notmuch ];
+  buildInputs = [ python3 notmuch gawk ];
 
   installPhase = ''
     runHook preInstall
@@ -57,10 +58,13 @@ buildGoModule rec {
   '';
 
   postFixup = ''
-    wrapProgram $out/bin/aerc --prefix PATH ":" \
-      "${lib.makeBinPath [ ncurses ]}"
-    wrapProgram $out/share/aerc/filters/html --prefix PATH ":" \
-      ${lib.makeBinPath [ w3m dante ]}
+    wrapProgram $out/bin/aerc \
+      --prefix PATH ":" "${lib.makeBinPath [ ncurses ]}"
+    wrapProgram $out/share/aerc/filters/html \
+      --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; {