You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devbox add fallthrough and fallback for packages not handled by search (#1264)
## Summary
`devbox add` fallthrough and fallback for packages not handled by
search.
This PR does not do the following:
1. Print a warning that a package is in a fallthrough case (I'm unclear
if a warning is needed?)
2. Accept an alternative nixpkg commit hash for that specific package
(I'm unclear if we are deprecating `nixpkg` commit field in
`devbox.json` immediately?)
I'd like to address those two things above if needed in a separate PR as
a follow up.
Example lockfile:
```
{
"lockfile_version": "1",
"packages": {
"python310": {
"plugin_version": "0.0.1",
"resolved": "github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#python310",
"source": "nixpkg"
},
"python310Packages.pip@latest": {
"last_modified": "2023-05-06T16:57:53Z",
"plugin_version": "0.0.1",
"resolved": "github:NixOS/nixpkgs/16b3b0c53b1ee8936739f8c588544e7fcec3fc60#python310Packages.pip",
"source": "devbox-search",
"version": "23.0.1"
},
"stdenv.cc.cc.lib": {
"resolved": "github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#stdenv.cc.cc.lib",
"source": "nixpkg"
}
}
}
```
## How was it tested?
In the Tensorflow example:
```
devbox add stdenv.cc.cc.lib
devbox add nodejs-16_x
devbox update
```
0 commit comments