1
0
Fork 0
nix-scripts/artiq-fast/wfvm/README.md

27 lines
574 B
Markdown
Raw Normal View History

2020-06-11 16:22:35 +08:00
# Preparation steps
## Install a Windows image
2020-06-14 12:15:00 +08:00
1. Adjust demo-image.nix accordingly
2020-06-11 16:22:35 +08:00
2. Run:
If in impure mode
```shell
2020-06-14 12:15:00 +08:00
nix-build demo-image.nix
2020-06-11 16:22:35 +08:00
./result
```
Results in a file called c.img
If in pure mode
```shell
2020-06-14 12:15:00 +08:00
nix-build demo-image.nix
2020-06-11 16:22:35 +08:00
ls -la ./result
```
Results in a symlink to the image in the nix store
# Impure/pure mode
Sometimes it can be useful to build the image _outside_ of the Nix sandbox for debugging purposes.
For this purpose we have an attribute called `impureMode` which outputs the shell script used by Nix inside the sandbox to build the image.