Commit dd07aa8
authored
[allow unfree] add --impure and env-var to nix profile commands (#753)
## Summary
Adding these back. They enable adding unfree packages and do not affect
shell perf.
```
❯ time devbox run -- echo "hi"
Warning: local and global devbox.json have different nixpkgs commits. Will use the local version. This may lead to version mismatch and nix store bloat.
Ensuring packages are installed.
hi
devbox run -- echo "hi" 0.41s user 0.16s system 67% cpu 0.847 total
```
context:
#749 (comment)
## How was it tested?
these now work
```
> devbox add slack
> devbox add vscode
```
~I will add a testscript unit test in a follow up PR~
Added testscript unit test1 parent 6eb0abe commit dd07aa8
File tree
3 files changed
+20
-20
lines changed- examples/testdata/unfree-packages
- internal/nix
- testscripts/packages
3 files changed
+20
-20
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
230 | 226 | | |
231 | 227 | | |
232 | 228 | | |
| 229 | + | |
233 | 230 | | |
234 | 231 | | |
| 232 | + | |
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
| |||
300 | 298 | | |
301 | 299 | | |
302 | 300 | | |
| 301 | + | |
303 | 302 | | |
304 | 303 | | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments