on e94de40 help sign in
haskell.nix/docs/dev/installing-nix-tools.md
28 lines 908 B history raw
1## Installing `nix-tools`
3To build the latest `nix-tools` and store the result at `./nt`, run:
5```bash
6nix build -f https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz pkgs.haskell-nix.nix-tools.ghc884 --out-link nt
7```
9If you would like to then install `nix-tools` into your profile, run:
11```bash
12nix-env -i ./nt
13```
15## Optional: Installing via [Haskell.nix][] source
17The [Haskell.nix][] and `nix-tools` source will be useful if you would
18like to contribute improvements, or read the source code to fully
19understand something that the documentation doesn't cover.
21```bash
22git clone https://github.com/input-output-hk/nix-tools
23git clone https://github.com/input-output-hk/haskell.nix
24cd haskell.nix
25nix build -f . pkgs.haskell-nix.nix-tools.ghc884 --arg sourcesOverride '{ nix-tools = ../nix-tools; }' --out-link nt
26```
28[haskell.nix]: https://github.com/input-output-hk/haskell.nix