nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchurl, lib, stdenv, guile, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "mcron";
5 version = "1.2.1";
6
7 src = fetchurl {
8 url = "mirror://gnu/mcron/mcron-${version}.tar.gz";
9 sha256 = "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0";
10 };
11
12 # don't attempt to chmod +s files in the nix store
13 postPatch = ''
14 sed -E -i '/chmod u\+s/d' Makefile.in
15 '';
16
17 nativeBuildInputs = [ pkg-config ];
18 buildInputs = [ guile ];
19
20 doCheck = true;
21
22 meta = {
23 description = "Flexible implementation of `cron' in Guile";
24
25 longDescription = ''
26 The GNU package mcron (Mellor's cron) is a 100% compatible
27 replacement for Vixie cron. It is written in pure Guile, and
28 allows configuration files to be written in scheme (as well as
29 Vixie's original format) for infinite flexibility in specifying
30 when jobs should be run. Mcron was written by Dale Mellor.
31 '';
32
33 homepage = "https://www.gnu.org/software/mcron/";
34
35 license = lib.licenses.gpl3Plus;
36 platforms = lib.platforms.unix;
37 };
38}