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

12 lines
228 B
Bash

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