#!/bin/bash # Builder Setup set -e source $stdenv/setup # Program Setup BIN_DIR="$out/bin" PROG_FILENAME="hello-world" mkdir -p "$BIN_DIR" PROGRAM_OUT="$BIN_DIR/$PROG_FILENAME" # Program Script echo "#!/bin/bash" >> $PROGRAM_OUT echo "" >> $PROGRAM_OUT echo "set -e" >> $PROGRAM_OUT echo "echo 'Hello, World!'" >> $PROGRAM_OUT chmod +x $PROGRAM_OUT