on iko/ghcjs-patch-master help sign in
Improve nix-tools installation guide (#639)
208cd20Shao Cheng
docs/user-guide.md+2−2
@@ -49,7 +49,7 @@ produce derivations that we can `nix build`.
49To build the latest `nix-tools` and store the result at `./nt`, run:
49To build the latest `nix-tools` and store the result at `./nt`, run:
50
50
51```bash
51```bash
52−nix build '(with import <nixpkgs> (import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {}).nixpkgsArgs; haskell-nix.nix-tools)' --out-link nt
52+nix build 'let haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) {}; in (import haskellNix.sources.nixpkgs-2003 haskellNix.nixpkgsArgs).haskell-nix.nix-tools' --out-link nt
53```
53```
54
54
55If you would like to then install `nix-tools` into your profile, run:
55If you would like to then install `nix-tools` into your profile, run:
@@ -75,7 +75,7 @@ nix build -f . haskell-nix.nix-tools --out-link nt
75
75
76CI pushes to [cachix](https://cachix.org) so you can benefit from the cache if
76CI pushes to [cachix](https://cachix.org) so you can benefit from the cache if
77you pin a combination of `haskell.nix` and `nixpkgs` built by CI. You'll need
77you pin a combination of `haskell.nix` and `nixpkgs` built by CI. You'll need
78−to configure the [nix-tools cachix](https://nix-tools.cachix.org) as a
78+to configure the [iohk cachix](https://iohk.cachix.org) as a
79`substituter` for `nix` and add the public key found at the url to
79`substituter` for `nix` and add the public key found at the url to
80`trusted-public-keys`.
80`trusted-public-keys`.
81
81