mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
d937a1bae0
svn path=/nixpkgs/trunk/; revision=16793
33 lines
892 B
Nix
33 lines
892 B
Nix
{ fetchurl, stdenv, bison, flex, pam, ssmtp }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "at-3.1.11";
|
|
|
|
src = fetchurl {
|
|
# Debian is apparently the last location where it can be found.
|
|
url = mirror://debian/pool/main/a/at/at_3.1.11.orig.tar.gz;
|
|
sha256 = "0n995h57x87xg10n8rkq06lynnb3syynfngwspfg91cp22cphycb";
|
|
};
|
|
|
|
patches = [ ./install.patch ];
|
|
|
|
buildInputs =
|
|
[ bison flex pam
|
|
# `configure' and `atd' want the `sendmail' command.
|
|
ssmtp
|
|
];
|
|
|
|
configurePhase = ''
|
|
export PATH="${ssmtp}/sbin:$PATH"
|
|
./configure --prefix=$out --with-etcdir=/etc/at \
|
|
--with-jobdir=/var/spool/atjobs --with-atspool=/var/spool/atspool \
|
|
--with-daemon_username=atd --with-daemon_groupname=atd
|
|
'';
|
|
|
|
meta = {
|
|
description = ''The classical Unix `at' job scheduling command'';
|
|
license = "GPLv2+";
|
|
homepage = http://packages.qa.debian.org/at;
|
|
};
|
|
}
|