#! @shell@ set -e set -o pipefail export PATH=@path@:$PATH evalNix() { nix-instantiate --eval --strict "${extraEvalFlags[@]}" -E "with import {}; $*" 2>/dev/null } evalOpt() { evalNix "options.$option.$*" } evalOptAttrs() { evalNix "builtins.concatStringsSep \"\\n\" (builtins.attrNames $*)" | jq -r . } evalOptText() { evalNix "options.$option.$*" | jq -r . } showSyntax() { echo "$0: [-I path]