From 0c86d710feabf24ed9447ae61113cff3a8dae700 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 20 Aug 2009 23:57:33 +0000 Subject: [PATCH] * Make sure that the pid file is placed in /var/run. svn path=/nixpkgs/trunk/; revision=16794 --- pkgs/tools/system/at/default.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/system/at/default.nix b/pkgs/tools/system/at/default.nix index eae0c9843b0..2b79609d6cf 100644 --- a/pkgs/tools/system/at/default.nix +++ b/pkgs/tools/system/at/default.nix @@ -17,12 +17,21 @@ stdenv.mkDerivation { 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 - ''; + 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'';