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

12 lines
236 B
Bash
Raw Normal View History

source $stdenv/setup
ensureDir $out
sed -e "s^@bash\@^$bash^g" \
-e "s^@syslog\@^$syslog^g" \
-e "s^@nicename\@^$nicename^g" \
-e "s^@initscripts\@^$initscripts^g" \
< $script > $out/$nicename
chmod +x $out/$nicename