2014-09-06 18:10:19 +00:00
|
|
|
{ fetchurl, stdenv, bison, flex, pam, sendmailPath ? "/var/setuid-wrappers/sendmail" }:
|
2008-04-01 09:08:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-10-06 19:46:29 +00:00
|
|
|
name = "at-3.1.16";
|
2008-04-01 09:08:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# Debian is apparently the last location where it can be found.
|
2014-10-06 19:46:29 +00:00
|
|
|
url = mirror://debian/pool/main/a/at/at_3.1.16.orig.tar.gz;
|
|
|
|
sha256 = "1hfmnhgi95vsfaa69qlakpwd22al0m0rhqms6sawxvaldafgb6nb";
|
2008-04-01 09:08:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./install.patch ];
|
|
|
|
|
2009-08-20 23:40:50 +00:00
|
|
|
buildInputs =
|
2014-09-06 18:10:19 +00:00
|
|
|
[ bison flex pam ];
|
2008-04-01 09:08:17 +00:00
|
|
|
|
2009-08-20 23:57:33 +00:00
|
|
|
preConfigure =
|
|
|
|
''
|
2014-09-06 18:10:19 +00:00
|
|
|
export SENDMAIL=${sendmailPath}
|
2009-08-20 23:57:33 +00: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 09:08:17 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''The classical Unix `at' job scheduling command'';
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2008-04-01 09:08:17 +00:00
|
|
|
homepage = http://packages.qa.debian.org/at;
|
|
|
|
};
|
2009-02-13 18:06:25 +00:00
|
|
|
}
|