about summary refs log tree commit diff
path: root/pkgs/tools/system/at/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/at/default.nix')
-rw-r--r--pkgs/tools/system/at/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/system/at/default.nix b/pkgs/tools/system/at/default.nix
new file mode 100644
index 000000000000..21b35ad9b956
--- /dev/null
+++ b/pkgs/tools/system/at/default.nix
@@ -0,0 +1,31 @@
+{ fetchurl, stdenv, bison, flex, pam, ssmtp }:
+
+stdenv.mkDerivation {
+  name = "at-3.1.10.1";
+
+  src = fetchurl {
+    # Debian is apparently the last location where it can be found.
+    url = mirror://debian/pool/main/a/at/at_3.1.10.1.tar.gz;
+    sha256 = "188j6v0hq9avd9v7mhc8gdyg4wycc7lqviw4idwn0jjvwkky5428";
+  };
+
+  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;
+  };
+}
\ No newline at end of file