3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/server-scripts/generic/builder.sh
Armijn Hemel 3d24096431 introduce a rudimentary (working) form of the topological sort principle.
We can now start SSH with optional syslogging support. Also, if a program
is not already present in the /etc/rc.d "profile" (actually, not it has become
a collection of profiles) it will be automatically added.

This sounds hackish, and it probably is, but also, it might be the best
workable solution for now...

svn path=/nixpkgs/trunk/; revision=5044
2006-03-15 15:51:32 +00:00

12 lines
273 B
Bash

source $stdenv/setup
ensureDir $out
sed -e "s^@bash\@^$bash^g" \
-e "s^@sshd\@^$ssh^g" \
-e "s^@initscripts\@^$initscripts^g" \
-e "s^@coreutils\@^$coreutils^g" \
-e "s^@nixpkgs\@^$nixpkgs^g" \
-e "s^@nix\@^$nix^g" \
< $functions > $out/$nicename