diff --git a/pkgs/tools/system/cron/default.nix b/pkgs/tools/system/cron/default.nix index dec1bacd741..bf345fadbd4 100644 --- a/pkgs/tools/system/cron/default.nix +++ b/pkgs/tools/system/cron/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation { preBuild = '' substituteInPlace Makefile --replace ' -o root' ' ' --replace 111 755 - makeFlags="DESTROOT=$out" + makeFlags="DESTROOT=$out CC=cc" # We want to ignore the $glibc/include/paths.h definition of # sendmail path. @@ -35,6 +35,6 @@ stdenv.mkDerivation { meta = { description = "Daemon for running commands at specific times (Vixie Cron)"; - platforms = stdenv.lib.platforms.linux; + platforms = with stdenv.lib.platforms; linux ++ darwin; }; }