From da71b8fd5f3ef3e93a693873e27dcb97ea1b6234 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Thu, 15 Feb 2018 13:36:24 +0100 Subject: [PATCH] rss2email: sendmail from PATH instead of /usr/sbin --- .../networking/feedreaders/rss2email/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/networking/feedreaders/rss2email/default.nix b/pkgs/applications/networking/feedreaders/rss2email/default.nix index 49b0aed865f..4152c2772e1 100644 --- a/pkgs/applications/networking/feedreaders/rss2email/default.nix +++ b/pkgs/applications/networking/feedreaders/rss2email/default.nix @@ -16,6 +16,12 @@ buildPythonApplication rec { outputs = [ "out" "man" "doc" ]; + postPatch = '' + # sendmail executable is called from PATH instead of sbin by default + sed -e 's|/usr/sbin/sendmail|sendmail|' \ + -i rss2email/config.py + ''; + postInstall = '' install -Dm 644 r2e.1 $man/share/man/man1/r2e.1 # an alias for better finding the manpage