{ writeShellApplication, shellcheck }: writeShellApplication { name = "shellcheck"; runtimeInputs = [ shellcheck ]; text = '' scripts=() shopt -s globstar for f in **/*.sh; do scripts+=("$f") done shellcheck -e SC2239 "''${scripts[@]}" ''; }