Developer environments / profiles #141
MarcCoquand
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A cool feature of Nix is that it allows you to setup local development environment for your software. You specify the packages you want in a
shell.nixfile. Runningnix shellinstalls the packages listed and then enter you in a new shell with those environment variables. I've found this feature super useful for collaboration or when I revisit old projects.This feature pairs particularly well with direnv, making it so that your environment variables are automatically update when you enter specific directories, and uncluttering your global namespace.
It doesn't seem impossible to offer something simpler with a slimmed scope for dreckly. I think it could almost be done today, but its maybe not particularly ergonomic:
pkgdirectory per project, together with direnv you can automatically add thepkg/{bin,sbin}directory to$PATH.meta-pkgsMakefile that you symlink to dreckly, where you add all required development dependencies.I don't know what the limitations would be with that approach, but if it works then it might be possible to setup some custom tooling to make this extra easy. I'm happy to investigate this but wanted to see if the community has any thoughts about if this makes sense.
Beta Was this translation helpful? Give feedback.
All reactions