1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 10:00:56 +00:00
nixpkgs/pkgs/tools/system/at/default.nix
Lluís Batlle i Rossell ca167b9a97 Updating 'at' from 3.1.11 to 3.1.12.
The debian repository only has 3.1.10 and 3.1.12. I don't know why.


svn path=/nixpkgs/trunk/; revision=19480
2010-01-16 14:44:20 +00:00

42 lines
1 KiB
Nix

{ fetchurl, stdenv, bison, flex, pam, ssmtp }:
stdenv.mkDerivation {
name = "at-3.1.12";
src = fetchurl {
# Debian is apparently the last location where it can be found.
url = mirror://debian/pool/main/a/at/at_3.1.12.orig.tar.gz;
sha256 = "1wqqrj4lg2ix79ib5kz7lk4hbs1zpw72n6zkd2gdv2my9ymwcmbw";
};
patches = [ ./install.patch ];
buildInputs =
[ bison flex pam
# `configure' and `atd' want the `sendmail' command.
ssmtp
];
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
'';
meta = {
description = ''The classical Unix `at' job scheduling command'';
license = "GPLv2+";
homepage = http://packages.qa.debian.org/at;
};
}