diff options
author | Aaron Andersen <aaron@fosslib.net> | 2019-02-08 12:06:16 -0500 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2019-02-08 12:06:16 -0500 |
commit | c8547081cb61d6078f0681be98a5331717a115f3 (patch) | |
tree | 3d623238bc77da29d140402080e10c8c19a1226a /pkgs/tools/system/cron | |
parent | 70765af1a695c06e5cbab64945faaab2bdaeeba7 (diff) |
cron: fix error when running crontab as sudo (issue #54827)
Diffstat (limited to 'pkgs/tools/system/cron')
-rw-r--r-- | pkgs/tools/system/cron/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/system/cron/default.nix b/pkgs/tools/system/cron/default.nix index 374f0ac19d89f..aa047ca4a681d 100644 --- a/pkgs/tools/system/cron/default.nix +++ b/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"; @@ -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__ |