3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/upstart-jobs/gather.nix
Eelco Dolstra c063ea2bfa * Use runCommand.
svn path=/nixos/trunk/; revision=7300
2006-12-10 22:43:04 +00:00

14 lines
318 B
Nix

# Create an etc/event.d directory containing symlinks to the
# specified list of Upstart job files.
{runCommand, jobs}:
runCommand "upstart-jobs" {inherit jobs;}
"
ensureDir $out/etc/event.d
for i in $jobs; do
if test -d $i; then
ln -s $i/etc/event.d/* $out/etc/event.d/
fi
done
"