From cb211d6e8bd505c5e1f7b93fc7c5155962f46749 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 30 Jul 2025 10:12:23 -0400 Subject: [PATCH] docs(readme): update nix instructions (#359) --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d26d73951f0dac8d89b62780e72ee4a59ea5361..cd9536e2d55ef5744895a2e3d5a3852c574f4b88 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,26 @@ npm install -g @charmland/crush # Arch Linux (btw) yay -S crush-bin +``` + +
+Nix + +Crush is available via [NUR](https://github.com/nix-community/NUR) in `nur.repos.charmbracelet.crush`. + +You can also try out Crush via `nix-shell`: -# Nix -nix-shell -p nur.repos.charmbracelet.crush +```bash +# Add the NUR channel. +nix-channel --add https://github.com/nix-community/NUR/archive/main.tar.gz nur +nix-channel --update + +# Get Crush in a Nix shell. +nix-shell -p '(import { pkgs = import {}; }).repos.charmbracelet.crush' ``` +
+
Debian/Ubuntu @@ -71,7 +86,7 @@ Or, download it: [releases]: https://github.com/charmbracelet/crush/releases -Or just install it with go: +Or just install it with Go: ``` go install github.com/charmbracelet/crush@latest