nix: update user instructions

This commit is contained in:
Sebastien Bourdeauducq 2019-02-10 01:01:16 +08:00
parent f673ce276f
commit 3a21794b79
1 changed files with 8 additions and 5 deletions

View File

@ -19,11 +19,14 @@ This sets up an environment suitable for using ARTIQ, including the ARTIQ-Python
* $ ``source ~/.nix-profile/etc/profile.d/nix.sh``
* $ ``git clone github.com/m-labs/artiq``
* $ ``cd artiq/nix``
* $ ``nix-env -i -f default.nix``
The above command will setup your entire environment. Note that it will compile LLVM, which uses a lot of CPU time and disk space.
* $ ``nix-channel --add https://nixbld.m-labs.hk/project/artiq/channel/latest m-labs``
* $ ``nix-channel --update``
* create the file ``~/.config/nix/nix.conf`` with the following content:
``
substituters = https://cache.nixos.org https://nixbld.m-labs.hk
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc=
``
* $ ``nix-env -i python3.6-artiq``
ARTIQ development environment with Nix
======================================