2006-12-10 14:43:04 -08:00
|
|
|
{runCommand}: job:
|
2006-11-19 13:03:22 -08:00
|
|
|
|
2007-03-05 16:07:00 -08:00
|
|
|
(
|
|
|
|
runCommand job.name {inherit (job) job;}
|
|
|
|
"ensureDir $out/etc/event.d; echo \"$job\" > $out/etc/event.d/$name"
|
|
|
|
)
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
# Allow jobs to declare extra packages that should be added to the
|
2007-03-30 05:55:09 -07:00
|
|
|
# system path, as well as extra files that should be added to /etc.
|
2007-03-05 16:07:00 -08:00
|
|
|
{
|
|
|
|
extraPath = if job ? extraPath then job.extraPath else [];
|
2007-03-30 05:55:09 -07:00
|
|
|
extraEtc = if job ? extraEtc then job.extraEtc else [];
|
|
|
|
}
|