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
[nixpkgs version] change field from version to commit; add validation (#256)
## Summary
Changing the field name inside `Config.Nixpkgs` from `version` to
`commit`.
The motivation stems from the realization that even `YY.MM` stable
channels of
nixpkgs have periodic updates (mostly for security), which means the
commit-hash
tracked by the `nixos-stable` branch changes.
To simplify the product design for now, and to avoid introducing a
lockfile,
we change `version` to be the unambiguous `commit`. For users who would
like
to track the nixpkgs commit from `search.nixos.org` webpage, they can
refer
to `status.nixos.org` and use the commit for the nixpkgs channel they
want.
## How was it tested?
`go test ./...` b/c added a testcase for the validation function.
```
> cd testdata/nodejs/nodejs-18
> DEVBOX_FEATURE_NIXPKG_VERSION=1 DEVBOX_DEBUG=0 devbox shell -- node --version
Installing nix packages. This may take a while...done.
Starting a devbox shell...
v18.7.0
```
0 commit comments