2021-01-15 09:19:50 +00:00
|
|
|
{ fetchurl, lib, stdenv, guile, which, ed, libtool }:
|
2009-04-03 19:46:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-27 15:21:24 +01:00
|
|
|
pname = "mcron";
|
|
|
|
version = "1.0.6";
|
2009-04-03 19:46:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-27 15:21:24 +01:00
|
|
|
url = "mirror://gnu/mcron/mcron-${version}.tar.gz";
|
2010-07-04 22:11:08 +01:00
|
|
|
sha256 = "0yvrfzzdy2m7fbqkr61fw01wd9r2jpnbyabxhcsfivgxywknl0fy";
|
2009-04-03 19:46:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./install-vixie-programs.patch ];
|
|
|
|
|
2017-06-28 20:12:23 +01:00
|
|
|
# don't attempt to chmod +s files in the nix store
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace makefile.in --replace "rwxs" "rwx"
|
|
|
|
'';
|
|
|
|
|
2018-03-18 01:50:02 +00:00
|
|
|
buildInputs = [ guile which ed libtool ];
|
2009-04-03 19:46:26 +01:00
|
|
|
|
2010-07-04 22:11:08 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2009-04-03 19:46:26 +01:00
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Flexible implementation of `cron' in Guile";
|
2009-04-03 19:46:26 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The GNU package mcron (Mellor's cron) is a 100% compatible
|
|
|
|
replacement for Vixie cron. It is written in pure Guile, and
|
|
|
|
allows configuration files to be written in scheme (as well as
|
|
|
|
Vixie's original format) for infinite flexibility in specifying
|
|
|
|
when jobs should be run. Mcron was written by Dale Mellor.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.gnu.org/software/mcron/";
|
2009-04-03 19:46:26 +01:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2009-04-03 19:46:26 +01:00
|
|
|
};
|
|
|
|
}
|