1.2 KiB
1.2 KiB
nix_environments
This is a set of various environments which can be used with the Nix package manager.
Copy the shell.nix file from the desired folder into your project and run nix-shell.
This will drop you into a virtual environment with all requirements fulfilled.
Please check below how the virtual environments work and how to add environment specific packages.
If you need more Nix packages in your environent, enhance the list buildInputs in the file shell.nix.
node
This environment does the following:
- Create a directory
.npm/binif not existent - Add the
.npm/bindirectory to the$PATHvariable - Upgrade npm to the latest version
- If the file
global_packages.txtis present, install the packages via npm into the.npmdirectory - Run
npm installif a filepackage.jsonis present
python
This environment does the following:
- Create a new python virtualenv in the folder
.venvif not existent - Source the virtual environment
- Upgrade pip to the latest version
- If present, install the packages from the file
requirements.txtvia pip
rust
This environment does the following:
- Run
cargo buildifCargo.tomlis present