Skip to content

Commit

Permalink
Use lib.getExe' to get sendmail/ifconfig paths
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Sep 9, 2024
1 parent 5d5da2e commit 4f1c244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/logwatch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ stdenvNoCC.mkDerivation {
{
echo "TmpDir = /tmp/logwatch";
echo "mailer = \"${postfix}/bin/sendmail -t\"";
echo "mailer = \"${lib.getExe' postfix "sendmail"} -t\"";
echo "MailFrom = Logwatch"
} >> $out/usr/share/logwatch/default.conf/logwatch.conf
Expand Down Expand Up @@ -133,6 +133,6 @@ stdenvNoCC.mkDerivation {
xz
]
}" \
--set pathto_ifconfig "${nettools}/bin/ifconfig"
--set pathto_ifconfig "${lib.getExe' nettools "ifconfig"}"
'';
}

0 comments on commit 4f1c244

Please sign in to comment.