Enable generated nix expressions to work with `nix-build` as well as `nix-shell`.