1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

mdadm: fix path to sendmail

Without this, mdadm won't be able to send email notifications:

  $ sudo mdadm --monitor --scan --test
  sh: /nix/store/2v8jn0lxza72grcm6hciak9fpgm7xb3a-system-sendmail-1.0: Is a directory

Fixes: b074a40f74 ("mdadm: use shared system-sendmail")
This commit is contained in:
Bjørn Forsman 2019-09-18 20:12:58 +02:00
parent 175aecb258
commit 6b3832a519

View file

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -e 's@/lib/udev@''${out}/lib/udev@' \
-e 's@ -Werror @ @' \
-e 's@/usr/sbin/sendmail@${system-sendmail}@' -i Makefile
-e 's@/usr/sbin/sendmail@${system-sendmail}/bin/sendmail@' -i Makefile
sed -i \
-e 's@/usr/bin/basename@${coreutils}/bin/basename@g' \
-e 's@BINDIR/blkid@${utillinux}/bin/blkid@g' \