Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Environment and Android #838

Open
danwdart opened this issue Sep 9, 2024 · 1 comment
Open

System.Environment and Android #838

danwdart opened this issue Sep 9, 2024 · 1 comment

Comments

@danwdart
Copy link

danwdart commented Sep 9, 2024

Hi, I am having trouble importing environment variables via System.Environment - passing the correct env var to nix-build even with --impure does not include the variable in the built apk file (I'm setting a hostname for instance). Is there something I'm missing? Do I need to provide it in another file or something?

Thanks!

@ymeister
Copy link
Contributor

I think, what you need here is a config/hostname folder/file (or, what is commonly used for obelisk apps config/common/route) that you would include in your APK build as an asset and import in your haskell code by directly reading it from said file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants