Commit 944ff28
authored
[nixpkgs version] devbox init should add default nixpkgs commit (#259)
## Summary
This PR updates `devbox init` to insert the default nixpkgs commit.
## How was it tested?
feature flag OFF:
```
devbox/testdata/nodejs/nodejs-18/fake-dir on savil/nixpkgs-version-init [!] at ☸️ jetpack-cloud (savil-srivastava-jetpack-io)
➜ devbox init
devbox/testdata/nodejs/nodejs-18/fake-dir on savil/nixpkgs-version-init [!?] at ☸️ jetpack-cloud (savil-srivastava-jetpack-io)
➜ cat devbox.json
{
"packages": [],
"shell": {
"init_hook": null
},
"nixpkgs": {}
}%
```
feature flag ON
```
devbox/testdata/nodejs/nodejs-18/fake-dir on savil/nixpkgs-version-init [!] at ☸️ jetpack-cloud (savil-srivastava-jetpack-io)
➜ DEVBOX_FEATURE_NIXPKG_VERSION=1 devbox init
devbox/testdata/nodejs/nodejs-18/fake-dir on savil/nixpkgs-version-init [!?] at ☸️ jetpack-cloud (savil-srivastava-jetpack-io)
➜ cat devbox.json
{
"packages": [],
"shell": {
"init_hook": null
},
"nixpkgs": {
"commit": "af9e00071d0971eb292fd5abef334e66eda3cb69"
}
}%
```1 parent 57c922e commit 944ff28
File tree
4 files changed
+19
-11
lines changed- planner/plansdk
4 files changed
+19
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 399 | + | |
402 | 400 | | |
403 | 401 | | |
404 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
220 | 224 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
0 commit comments