Nix Environment Selector (🧪 Experimental Release)
The extension allows you switch environment for Visual Studio Code and extensions based on
Nix package manager provide an convenient solution for creating isolated environments with specific configuration of package list. This way is working as well from command line, but not prepared for using with IDE. For example if you have an language server extension that require compiler installed inside isolated environment is no simple way to link 'em with each other. The solution allows you manage environment for project based on Visual Studio Code workspace.
Haskell Project running example
We have the following config for our environment (
Haskell IDE Engine installed in user environment and require GHC compiler for work correctly. We want avoid to install the compiler globally such as different project can require different version of GHC. We will install the GHC compiler inside nix store (described in
Now lets try to open our project in Visual Studio Code.
You can see that IDE can't find a compiler. Lets enable the
Bingo 🎉🎉🎉. Everything is fine now 😈
The extension have been tested on MacOS. Should works on linux platform as well, but not tested yet. Feel free to create an issue if you found a problem.