Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nix and Flox install #877

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,31 @@ If you have an AMD GPU `rocm_smi_lib` is required, which may or may not be packa
brew install btop
```

**Binary release on Nix (macOS (x86_64 & ARM64) / Linux (x86_64 & ARM64))**

* **[nixpkgs](https://github.com/NixOS/nixpkgs/blob/nixos-24.05/pkgs/tools/system/btop/default.nix#L54)**
* **non-flake systems**
```console
$ # For a system-wide install
$ nix-env --file '<nixpkgs>' --install --attr btop
$ # For a temporary shell
$ nix-shell '<nixpkgs>' --attr btop
```
* **flake enabled systems**
```console
$ # For a profile-wide install
$ nix profile install nixpkgs#btop
$ # For a temporary shell
$ nix shell nixpkgs#btop
```

**Binary release on Flox (macOS (x86_64 & ARM64) / Linux (x86_64 & ARM64))**

* **[Flox](https://flox.dev)**
```bash
flox install btop
```

## Compilation Linux

Requires at least GCC 10 or Clang 16.
Expand Down