Merge pull request #55453 from aanderse/cron-editor
cron: fix error when running crontab as sudo (issue #54827)
This commit is contained in:
commit
3b72c44663
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, sendmailPath ? "/usr/sbin/sendmail"}:
|
||||
{stdenv, fetchurl, vim, sendmailPath ? "/usr/sbin/sendmail"}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "cron-4.1";
|
||||
@ -25,6 +25,9 @@ stdenv.mkDerivation {
|
||||
#undef _PATH_SENDMAIL
|
||||
#define _PATH_SENDMAIL "${sendmailPath}"
|
||||
|
||||
#undef _PATH_VI
|
||||
#define _PATH_VI "${vim}/bin/vim"
|
||||
|
||||
#undef _PATH_DEFPATH
|
||||
#define _PATH_DEFPATH "/run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/bin:/bin"
|
||||
__EOT__
|
||||
|
Loading…
Reference in New Issue
Block a user