{writeShellApplication, dotfiles, bash, jq, rofi, nordvpn, coreutils, ...}: writeShellApplication { name = "nordvpn-rofi"; runtimeInputs = [ jq rofi nordvpn coreutils bash ]; # shellcheck errors or warnings that should be ignored: excludeShellChecks = [ "SC2015" # we use && true || false superfluously, but correctly. "SC2016" # we use single quotes specifically to avoid variable expansion. ]; # don't set errexit, as this script needs functions to be able to error out bashOptions = [ "pipefail" "nounset" ]; text = builtins.readFile "${dotfiles}/.local/bin/nordvpn-rofi.sh"; }