Skip to content

Commit

Permalink
Add package dependencies for Nix on macOS (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheDr01ds authored Jan 13, 2025
1 parent 66d4a64 commit e686771
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions book/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,20 @@ You will need to install "libxcb", "openssl-devel" and "libX11-devel":

#### macOS

##### Homebrew

Using [Homebrew](https://brew.sh/), you will need to install "openssl" and "cmake" using:

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

##### Nix

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:

- Globally, using `nix-env --install` (and others).
- Locally, using [Home Manager](https://github.com/nix-community/home-manager) in your `home.nix` config.
- Temporarily, using `nix-shell` (and others).

### Build from [crates.io](https://crates.io) using Cargo

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`:
Expand Down

0 comments on commit e686771

Please sign in to comment.