2006-12-10 23:43:04 +01:00
|
|
|
{runCommand}: job:
|
2006-11-19 22:03:22 +01:00
|
|
|
|
2007-03-06 01:07:00 +01: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 14:55:09 +02:00
|
|
|
# system path, as well as extra files that should be added to /etc.
|
2007-03-06 01:07:00 +01:00
|
|
|
{
|
|
|
|
extraPath = if job ? extraPath then job.extraPath else [];
|
2007-03-30 14:55:09 +02:00
|
|
|
extraEtc = if job ? extraEtc then job.extraEtc else [];
|
|
|
|
}
|