Per the conversation in the topic about using pre-built binaries inside snaps, please note that for a some time now we support declaring environment variables to be exported inside the snap environment directly in snapcraft.yaml.
For example, at the top level:
environment: SOME_VAR_NAME: some value
and/or under each application:
apps: myapp: command: ... environment: SOME_VAR_NAME: some_value