2017-01-29 02:11:01 -08:00
|
|
|
{ fetchurl, stdenv, bison, flex, pam, sendmailPath ? "/run/wrappers/bin/sendmail" }:
|
2008-04-01 02:08:17 -07:00
|
|
|
|
2017-09-05 04:27:20 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "at-${version}";
|
|
|
|
version = "3.1.20";
|
2008-04-01 02:08:17 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# Debian is apparently the last location where it can be found.
|
2017-09-05 04:27:20 -07:00
|
|
|
url = "mirror://debian/pool/main/a/at/at_${version}.orig.tar.gz";
|
|
|
|
sha256 = "1fgsrqpx0r6qcjxmlsqnwilydhfxn976c870mjc0n1bkmcy94w88";
|
2008-04-01 02:08:17 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./install.patch ];
|
|
|
|
|
2009-08-20 16:40:50 -07:00
|
|
|
buildInputs =
|
2014-09-06 11:10:19 -07:00
|
|
|
[ bison flex pam ];
|
2008-04-01 02:08:17 -07:00
|
|
|
|
2009-08-20 16:57:33 -07:00
|
|
|
preConfigure =
|
|
|
|
''
|
2014-09-06 11:10:19 -07:00
|
|
|
export SENDMAIL=${sendmailPath}
|
2009-08-20 16:57:33 -07:00
|
|
|
# Purity: force atd.pid to be placed in /var/run regardless of
|
|
|
|
# whether it exists now.
|
|
|
|
substituteInPlace ./configure --replace "test -d /var/run" "true"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
''
|
|
|
|
--with-etcdir=/etc/at
|
|
|
|
--with-jobdir=/var/spool/atjobs --with-atspool=/var/spool/atspool
|
|
|
|
--with-daemon_username=atd --with-daemon_groupname=atd
|
|
|
|
'';
|
2008-04-01 02:08:17 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''The classical Unix `at' job scheduling command'';
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-08-02 14:50:51 -07:00
|
|
|
homepage = https://packages.qa.debian.org/at;
|
2015-03-20 08:52:02 -07:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-04-01 02:08:17 -07:00
|
|
|
};
|
2009-02-13 10:06:25 -08:00
|
|
|
}
|