Merge pull request #55453 from aanderse/cron-editor

cron: fix error when running crontab as sudo (issue #54827)
This commit is contained in:
Alyssa Ross 2019-02-08 17:25:55 +00:00 committed by GitHub
commit 3b72c44663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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__