on main help sign in
docs(readme): update nix instructions (#359)
cb211d6Christian Rocha
README.md+18−3
@@ -32,11 +32,26 @@ npm install -g @charmland/crush
32
32
33# Arch Linux (btw)
33# Arch Linux (btw)
34yay -S crush-bin
34yay -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`:
35
43
36−# Nix
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.
37−nix-shell -p nur.repos.charmbracelet.crush
50+nix-shell -p '(import <nur> { pkgs = import <nixpkgs> {}; }).repos.charmbracelet.crush'
38```
51```
39
52
53+</details>
54+
40<details>
55<details>
41<summary><strong>Debian/Ubuntu</strong></summary>
56<summary><strong>Debian/Ubuntu</strong></summary>
42
57
@@ -71,7 +86,7 @@ Or, download it:
71
86
72[releases]: https://github.com/charmbracelet/crush/releases
87[releases]: https://github.com/charmbracelet/crush/releases
73
88
74−Or just install it with go:
89+Or just install it with Go:
75
90
76```
91```
77go install github.com/charmbracelet/crush@latest
92go install github.com/charmbracelet/crush@latest