Skip to content

Commit

Permalink
Merge pull request #55453 from aanderse/cron-editor
Browse files Browse the repository at this point in the history
cron: fix error when running crontab as sudo (issue #54827)
  • Loading branch information
alyssais committed Feb 8, 2019
2 parents ffc604e + c854708 commit 3b72c44
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 3b72c44

Please sign in to comment.