on main help sign in
docs(readme): update nix instructions (#359)
commitcb211d6e8bd505c5e1f7b93fc7c5155962f46749 authorChristian Rocha <christian@rocha.is> dateWed 30 Jul 2025, 10:12 (1 year ago) parent4ae839a
1 file changed+18−3
README.md+18−3
README.md+18−3
@@ -32,11 +32,26 @@ npm install -g @charmland/crush
3232
3333# Arch Linux (btw)
3434yay -S crush-bin
35+```
36+
37+<details>
38+<summary><strong>Nix</strong></summary>
39+
40+Crush is available via [NUR](https://github.com/nix-community/NUR) in `nur.repos.charmbracelet.crush`.
41+
42+You can also try out Crush via `nix-shell`:
3543
36−# Nix
37−nix-shell -p nur.repos.charmbracelet.crush
44+```bash
45+# Add the NUR channel.
46+nix-channel --add https://github.com/nix-community/NUR/archive/main.tar.gz nur
47+nix-channel --update
48+
49+# Get Crush in a Nix shell.
50+nix-shell -p '(import <nur> { pkgs = import <nixpkgs> {}; }).repos.charmbracelet.crush'
3851```
3952
53+</details>
54+
4055<details>
4156<summary><strong>Debian/Ubuntu</strong></summary>
4257
@@ -71,7 +86,7 @@ Or, download it:
7186
7287[releases]: https://github.com/charmbracelet/crush/releases
7388
74−Or just install it with go:
89+Or just install it with Go:
7590
7691```
7792go install github.com/charmbracelet/crush@latest