Is it possible to set environment variables while using nix-shell which gets invoked via a shebang? For example, I'm using
#! /usr/bin/env nix-shell
#! nix-shell -i runghc --pure
and would like to set an environment variable like FOO=bar. Note, FOO is not necessarily defined by the surrounding environment. Thus --keep FOO is not an option.