nixpkgs/pkgs/servers/ssh-script/builder.sh

14 lines
295 B
Bash
Raw Normal View History

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" \
-e "s^@deps\@^$deps^g" \
< $script > $out/control
chmod +x $out/control