depot/third_party/nixpkgs/pkgs/tools/system/mcron/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

38 lines
1.1 KiB
Nix

{ fetchurl, stdenv, guile, which, ed, libtool }:
stdenv.mkDerivation rec {
name = "mcron-1.0.6";
src = fetchurl {
url = "mirror://gnu/mcron/${name}.tar.gz";
sha256 = "0yvrfzzdy2m7fbqkr61fw01wd9r2jpnbyabxhcsfivgxywknl0fy";
};
patches = [ ./install-vixie-programs.patch ];
# don't attempt to chmod +s files in the nix store
postPatch = ''
substituteInPlace makefile.in --replace "rwxs" "rwx"
'';
buildInputs = [ guile which ed libtool ];
doCheck = true;
meta = {
description = "Flexible implementation of `cron' in Guile";
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.
'';
homepage = "https://www.gnu.org/software/mcron/";
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.unix;
};
}