mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
c063ea2bfa
svn path=/nixos/trunk/; revision=7300
13 lines
318 B
Nix
13 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
|
|
"
|