| Crates.io | nixbrew |
| lib.rs | nixbrew |
| version | 0.1.0 |
| created_at | 2025-11-01 21:39:26.992573+00 |
| updated_at | 2025-11-01 21:39:26.992573+00 |
| description | A Homebrew-like CLI for Nix's imperative package management |
| homepage | https://github.com/eyuael/nixbrew |
| repository | https://github.com/eyuael/nixbrew |
| max_upload_size | |
| id | 1912462 |
| size | 48,015 |
A Homebrew-like CLI for Nix's imperative package management that combines the convenience of Homebrew with Nix's declarative reproducibility.
nix profile install github:eyuael/nixbrew
cargo install nixbrew
Download the latest release from GitHub Releases for your platform:
nixbrew-macos-x86_64 or nixbrew-macos-aarch64nixbrew-linux-x86_64nixbrew-windows-x86_64.exeAfter downloading, make it executable and add to your PATH:
chmod +x nixbrew
mv nixbrew /usr/local/bin/ # or another directory in your PATH
git clone https://github.com/eyuael/nixbrew.git
cd nixbrew
cargo build --release
sudo cp target/release/nixbrew /usr/local/bin/
nixbrew install ripgrep
nixbrew install ripgrep 14.1.0 # Install specific version
nixbrew install ripgrep 23.11 # Install from specific channel
nixbrew install ripgrep cb82756 # Install from commit hash
nixbrew uninstall ripgrep
nixbrew search "text editor"
nixbrew list
nixbrew update
nixbrew upgrade ripgrep
nixbrew versions ripgrep
nixbrew pin ripgrep 14.0.3
You can change a package to a different version using any of these methods:
# Install a different version (will replace current version)
nixbrew install ripgrep 14.1.0
# Pin to a specific version
nixbrew pin ripgrep 14.0.3
# Rollback to a previously installed version
nixbrew rollback ripgrep 14.0.3
nixbrew create-flake ripgrep
nixbrew create-flake ripgrep --version 14.0.3
nixbrew history ripgrep
nixbrew rollback ripgrep 14.0.3
nixbrew is a wrapper around Nix profiles that provides Homebrew-style commands. It uses nix profile commands under the hood with experimental features enabled automatically.
install, pin, or rollback commands~/.nixbrew/registry.json~/.nixbrew/
├── registry.json # Package registry with history
└── flakes/ # Generated flake files
├── ripgrep.flake.nix
└── ...