Skip to content

Commit e686771

Browse files
authored
Add package dependencies for Nix on macOS (#1746)
1 parent 66d4a64 commit e686771

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

book/installation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,20 @@ You will need to install "libxcb", "openssl-devel" and "libX11-devel":
9898

9999
#### macOS
100100

101+
##### Homebrew
102+
101103
Using [Homebrew](https://brew.sh/), you will need to install "openssl" and "cmake" using:
102104

103105
@[code](@snippets/installation/macos_deps.sh)
104106

107+
##### Nix
108+
109+
If using [Nix](https://nixos.org/download/#nix-install-macos) for package management on macOS, the `openssl`, `cmake`, `pkg-config`, and `curl` packages are required. These can be installed:
110+
111+
- Globally, using `nix-env --install` (and others).
112+
- Locally, using [Home Manager](https://github.com/nix-community/home-manager) in your `home.nix` config.
113+
- Temporarily, using `nix-shell` (and others).
114+
105115
### Build from [crates.io](https://crates.io) using Cargo
106116

107117
Nushell releases are published as source to the popular Rust package registry [crates.io](https://crates.io/). This makes it easy to build and install the latest Nu release with `cargo`:

0 commit comments

Comments
 (0)