nix-scripts/artiq-fast/windows/README.md

27 lines
559 B
Markdown
Raw Normal View History

# Preparation steps
## Install a Windows image
2019-04-08 08:32:24 +08:00
1. Adjust build.nix accordingly
2. Run:
If in impure mode
```shell
nix-build build.nix
./result
```
Results in a file called c.img
2019-04-08 23:41:05 +08:00
If in pure mode
2019-04-08 23:41:05 +08:00
```shell
2020-04-22 16:35:05 +08:00
nix-build build.nix
ls -la ./result
2019-04-08 23:41:05 +08:00
```
Results in a symlink to the image in the nix store
2020-05-03 22:24:07 +08:00
# 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.