2008-04-01 11:08:17 +02:00
|
|
|
{ fetchurl, stdenv, bison, flex, pam, ssmtp }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-07-27 21:06:10 +02:00
|
|
|
name = "at-3.1.14";
|
2008-04-01 11:08:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# Debian is apparently the last location where it can be found.
|
2014-07-27 21:06:10 +02:00
|
|
|
url = mirror://debian/pool/main/a/at/at_3.1.14.orig.tar.gz;
|
|
|
|
sha256 = "cd092bf05d29c25b286f55a960ce8b8c3c5beb571d86ed8eb1dfb3b61291b3ae";
|
2008-04-01 11:08:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./install.patch ];
|
|
|
|
|
2009-08-21 01:40:50 +02:00
|
|
|
buildInputs =
|
|
|
|
[ bison flex pam
|
|
|
|
# `configure' and `atd' want the `sendmail' command.
|
|
|
|
ssmtp
|
|
|
|
];
|
2008-04-01 11:08:17 +02:00
|
|
|
|
2009-08-21 01:57:33 +02:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
export PATH="${ssmtp}/sbin:$PATH"
|
|
|
|
|
|
|
|
# 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 11:08:17 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''The classical Unix `at' job scheduling command'';
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2008-04-01 11:08:17 +02:00
|
|
|
homepage = http://packages.qa.debian.org/at;
|
|
|
|
};
|
2009-02-13 19:06:25 +01:00
|
|
|
}
|