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
{{ message }}
Repository navigation
For python, how to use venvShellHook with numtide / devshell #309
But with numtide / devshell it seems like I cannot use venvShellHook and hence no way to have the sweet virtual env created for me as I cd into the directory.
changed the title [-]How to use venvShellHook with `numtide / devshell`[/-][+]For python, how to use venvShellHook with `numtide / devshell`[/+]on Apr 26, 2024
It has unstable overlay (while some well respected members of the community mentioned that it's not the ideal way to use overlay for accessing unstable but works for me as of the moment)
Additionally uses process-compose for setting up PG (remove if not needed)
If we want to use something as shell hook, you must use postshellHook because shellHook will be used by venvShellHook and if you set shellHook manually it overrides it.
Also has a ci shell in addition to the default shell, remove if not needed
Activity
[-]How to use venvShellHook with `numtide / devshell`[/-][+]For python, how to use venvShellHook with `numtide / devshell`[/+]yajo commentedon Aug 2, 2024
Did you find a solution?
geekodour commentedon Aug 2, 2024
@yajo my solution was not using numtide devshell but using flake devshell with flake as described here: https://fasterthanli.me/series/building-a-rust-service-with-nix/part-10
Here's a flake i use for one of my projects:
cishell in addition to thedefaultshell, remove if not neededHope it helps!