-
Notifications
You must be signed in to change notification settings - Fork 454
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I'm being affected by DeterminateSystems/flakehub-push#170.
Of course that's not devenv's fault. However, it made me wonder: why do we need a static value? This is how it's defined:
devenv/src/modules/top-level.nix
Lines 164 to 168 in 8f8c96b
| root = lib.mkOption { | |
| type = types.str; | |
| internal = true; | |
| default = builtins.getEnv "PWD"; | |
| }; |
We can learn from other projects.
dream2nix allows setting path.projectRootFile, so that the script traverses the file tree up to finding this file, to find what is considered the project root.
That should let devenv flakes be evaluated purely, while still having a working dev shell with direnv, nix-shell or nix develop.
dsalaza4, gabyx, octet-stream, dixslyf and karpfediem
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request