devenv
devenv copied to clipboard
Give a way to turn off features that rely on finding the current directory
Would it be at all possible to do this so we can run without --impure when using flakes? I'd be happy to manually set a DEVENV_ROOT variable in my direnv config if I had to!
See https://github.com/cachix/devenv/pull/1418/files
To expand a bit on this, as long as the module system has a value for devenv.root, everything should work.
There are 3 ways to make this happen with flakes (that I know of):
- Run
nix developwith the--no-pure-evalflag. The module system will try to usebuiltins.getEnv "PWD"by default. - Hard-code
devenv.rootto an absolute path to your working directory. Not portable. - Use the above hack and use inputs to inject external data into the flake. The input update can be automated with direnv.