I read the documentation on this subject but I don't understand how it works. I would like to add version 16.17.0 of nodejs from the nixpkgs-unstable channel. I should add hash ee01de29d2f58d56b1be4ae24c24bd91c5380cea to my devbox.json file, but where? Under packages? I tried it like this but it does not work:
{
"packages": [
"mariadb",
"git",
"php81",
"php81Packages.composer",
"apacheHttpd",
"ee01de29d2f58d56b1be4ae24c24bd91c5380cea"
],
"nixpkgs": {
"commit": "1fc0a0f6c5290ce80b380d1eea3681a04aea1184"
}
}
Hey @Vandaahl, thanks for trying Devbox! The commit hash should go in the nixpkgs
object. Like so:
{
"packages": [
"mariadb",
"git",
"php81",
"php81Packages.composer",
"apacheHttpd",
],
"nixpkgs": {
"commit": "ee01de29d2f58d56b1be4ae24c24bd91c5380cea"
}
}
This will configure Devbox to use that version of the Nix store, which will include version 16.17 of NodeJS. I can update the docs to make this clearer. Please let us know if this fixes the issue!
Thank you @Lagoja, I think I understand a little better now. The commit hash influences all packages I have listed under "packages". I modified my devbox.json file as you suggested and added nodejs-16_x to packages. This results in the installation of nodejs 16.17.0, which is the exact version I wanted. As a side effect it has also downgraded the other packages I have listed, but that's ok. Problem solved!
Owner Name | jetpack-io |
Repo Name | devbox |
Full Name | jetpack-io/devbox |
Language | Go |
Created Date | 2022-08-18 |
Updated Date | 2023-03-31 |
Star Count | 4960 |
Watcher Count | 19 |
Fork Count | 68 |
Issue Count | 42 |
Issue Title | Created Date | Updated Date |
---|