mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 12:02:47 +00:00
09e0cc7cc7
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated https://repology.org/repository/nix_stable/problems
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ fetchurl, stdenv, bison, flex, pam, sendmailPath ? "/run/wrappers/bin/sendmail" }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "at-3.1.16";
|
|
|
|
src = fetchurl {
|
|
# Debian is apparently the last location where it can be found.
|
|
url = mirror://debian/pool/main/a/at/at_3.1.16.orig.tar.gz;
|
|
sha256 = "1hfmnhgi95vsfaa69qlakpwd22al0m0rhqms6sawxvaldafgb6nb";
|
|
};
|
|
|
|
patches = [ ./install.patch ];
|
|
|
|
buildInputs =
|
|
[ bison flex pam ];
|
|
|
|
preConfigure =
|
|
''
|
|
export SENDMAIL=${sendmailPath}
|
|
# 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 = stdenv.lib.licenses.gpl2Plus;
|
|
homepage = https://packages.qa.debian.org/at;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|