1 # restart using 'killall -TERM fcron; fcron -b
2 # use convert-fcrontab to update fcrontab files
13 stdenv.mkDerivation rec {
18 url = "http://fcron.free.fr/archives/${pname}-${version}.src.tar.gz";
19 sha256 = "sha256-81naoIpj3ft/4vlkuz9cUiRMJao2+SJaPMVNNvRoEQY=";
22 buildInputs = [ perl ];
24 patches = [ ./relative-fcronsighup.patch ];
27 "--with-sendmail=${busybox}/sbin/sendmail"
28 "--with-editor=${vim}/bin/vi" # TODO customizable
29 "--with-bootinstall=no"
30 "--localstatedir=/var"
32 "--with-rootname=root"
33 "--with-rootgroup=root"
37 installTargets = [ "install-staged" ]; # install does also try to change permissions of /etc/* files
39 # fcron tries to install pid into system directory on install
44 "REBOOT_LOCK=fcron.reboot"
51 sed -i 's@/usr/bin/env perl@${perl}/bin/perl@g' configure script/*
52 # Don't let fcron create the group fcron, nix(os) should do this
53 sed -i '2s@.*@exit 0@' script/user-group
55 # --with-bootinstall=no shoud do this, didn't work. So just exit the script before doing anything
56 sed -i '2s@.*@exit 0@' script/boot-install
58 # also don't use chown or chgrp for documentation (or whatever) when installing
59 find -type f | xargs sed -i -e 's@^\(\s\)*chown@\1:@' -e 's@^\(\s\)*chgrp@\1:@'
63 description = "Command scheduler with extended capabilities over cron and anacron";
64 homepage = "http://fcron.free.fr";
65 license = licenses.gpl2Plus;
66 platforms = lib.platforms.all;