You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experimenting with nixos (opinions yet to be formed). I am using micromamba to set up environments, which is working well. However, to make micromamba happy on nixos I need to pass through the NIX_LD and NIX_LD_LIBRARY_PATH environment variables. If I do this in my projects tox.ini file like so:
What I would like to know is if there is a way for me to configure my system to always pass these through for all my tox runs. I have tried to make a user config file:
$ export TOX_OVERRIDE="testenv.pass_env+=NIX_LD,NIX_LD_LIBRARY_PATH"
$ tox c -e .pkg[testenv:.pkg]type = Pep517VirtualEnvPackager[...]pass_env = CC CCSHARED CFLAGS CPPFLAGS CURL_CA_BUNDLE CXX FORCE_COLOR HOME LANG LANGUAGE LDFLAGS LD_LIBRARY_PATH NIX_LD NIX_LD_LIBRARY_PATH
Which looked hopeful but didn't actually pass the env through. Setting TOX_OVERRIDE="testenv:.pkg.pass_env+=NIX_LD,NIX_LD_LIBRARY_PATH" didn't seem to work either in reality or in the output of tox config.
Are there any other ways I can do this? or is any of this not working a bug? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am experimenting with nixos (opinions yet to be formed). I am using micromamba to set up environments, which is working well. However, to make micromamba happy on nixos I need to pass through the
NIX_LD
andNIX_LD_LIBRARY_PATH
environment variables. If I do this in my projects tox.ini file like so:it works fine.
What I would like to know is if there is a way for me to configure my system to always pass these through for all my tox runs. I have tried to make a user config file:
but that didn't work.
I also tried this:
Which looked hopeful but didn't actually pass the env through. Setting
TOX_OVERRIDE="testenv:.pkg.pass_env+=NIX_LD,NIX_LD_LIBRARY_PATH"
didn't seem to work either in reality or in the output oftox config
.Are there any other ways I can do this? or is any of this not working a bug? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions