Skip to content

Commit

Permalink
cron: fix error when running crontab as sudo (issue #54827)
Browse files Browse the repository at this point in the history
(cherry picked from commit c854708)

Fixes #54827.
  • Loading branch information
aanderse authored and alyssais committed Feb 8, 2019
1 parent e50e323 commit b0e4127
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/tools/system/cron/default.nix
@@ -1,4 +1,4 @@
{stdenv, fetchurl, sendmailPath ? "/usr/sbin/sendmail"}:
{stdenv, fetchurl, vim, sendmailPath ? "/usr/sbin/sendmail"}:

stdenv.mkDerivation {
name = "cron-4.1";
Expand All @@ -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__
Expand Down

0 comments on commit b0e4127

Please sign in to comment.