having pkgs.logrotate depend on mailutils brings in quite a bit of dependencies
through mailutil itself and recursive dependency to guile when most people
do not need it.
Remove mailutils dependency from the package, and conditionally add it to the
service if the user specify the mail option either at top level or in a path
Fixes#162001
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:
- built on NixOS
- ran `/nix/store/4y9bpdd23v1jpibrqzpnc4y4qipmz06y-logrotate-3.14.0/bin/logrotate --help` got 0 exit code
- found 3.14.0 in filename of file in /nix/store/4y9bpdd23v1jpibrqzpnc4y4qipmz06y-logrotate-3.14.0
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/qjpxc2hbnx8klaj6zxq9zxp29b4afqm1-logrotate-3.13.0/bin/logrotate --help` got 0 exit code
- found 3.13.0 in filename of file in /nix/store/qjpxc2hbnx8klaj6zxq9zxp29b4afqm1-logrotate-3.13.0
cc "@viric"