Skip to content

Commit a11c2c2

Browse files
committed
Added some doc to check nix installation
This is related to commercialhaskell#2537
1 parent 7413484 commit a11c2c2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

doc/nix_integration.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ option only if you already know Nix and have special requirements,
2424
such as using custom Nix packages that override the standard ones or
2525
using system libraries with special requirements.
2626

27+
### Checking Nix installation
28+
29+
Follow the instructions on the
30+
[Nix download page](http://nixos.org/nix/download.html) to install Nix. After
31+
doing so, when opening a terminal, the nix commands (`nix-build`, `nix-shell`,
32+
etc) should be available. If they are not, it should be because the file
33+
located at `$HOME/.nix-profile/etc/profile.d/nix.sh` is not sourced by your shell.
34+
35+
You should either run `source ~/.nix-profile/etc/profile.d/nix.sh` manually
36+
everytime you open a terminal and need Nix or add this command to your
37+
`~/.bashrc` or `~/.bash_profile`.
38+
2739
### Additions to your `stack.yaml`
2840

2941
Add a section to your `stack.yaml` as follows:

0 commit comments

Comments
 (0)