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