forked from mirrors/nixpkgs
304f3fbe9d
dependencies, such as "networking" in Nix expressions) is not entirely right, at least, trying to start them from for example this SSH script is not the right way. A cleaner solution is being developed :) svn path=/nixpkgs/trunk/; revision=5034
13 lines
270 B
Bash
13 lines
270 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^@softdeps\@^$softdeps^g" \
|
|
< $script > $out/$nicename
|
|
|
|
chmod +x $out/$nicename
|