depot/pkgs/tools/system/mcron/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
1 KiB
Nix

{ fetchurl, lib, stdenv, guile, pkg-config }:
stdenv.mkDerivation rec {
pname = "mcron";
version = "1.2.1";
src = fetchurl {
url = "mirror://gnu/mcron/mcron-${version}.tar.gz";
sha256 = "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0";
};
# don't attempt to chmod +s files in the nix store
postPatch = ''
sed -E -i '/chmod u\+s/d' Makefile.in
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ guile ];
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 = lib.licenses.gpl3Plus;
platforms = lib.platforms.unix;
};
}