devenv
devenv copied to clipboard
`devenv init --detect`
I am working on a bunch of project which don't use devenv/nix* and I find myself doing the following quite often:
- git clone ...
- devenv init
- update
devenv.nixto have justlanguages.<X>.enable = true - reload my shell
(sometimes, also languages.javascript.npm.install = true, or others)
I was wondering if it would be a nice improvement for the init command to automatically detect which kind of dependencies are expected and to have those blocks already configured.
I think a very simple detection via the presence of some files would suffice, with some basic options.
E.g.
-
package.jsonexists
languages.javascript = {
enable = true;
npm = {
enable = true;
# install.enable = true;
};
};
-
go.modexists
language.go.enable = true;
I would be happy to take a crack at this, if guided to the best way to do it.
Thanks!