2020-07-02 11:55:56 +03:00
|
|
|
# nix-tree
|
2020-06-25 01:47:16 +03:00
|
|
|
|
2020-07-02 12:12:51 +03:00
|
|
|
![Build Status](https://github.com/utdemir/nix-tree/workflows/nix-build/badge.svg)
|
2020-09-15 01:34:51 +03:00
|
|
|
[![Packaging status](https://repology.org/badge/vertical-allrepos/haskell:nix-tree.svg)](https://repology.org/project/haskell:nix-tree/versions)
|
2020-07-02 12:12:51 +03:00
|
|
|
|
2020-06-29 13:56:15 +03:00
|
|
|
Interactively browse the dependency graph of your Nix derivations.
|
2020-06-29 13:53:45 +03:00
|
|
|
|
2020-07-02 11:55:56 +03:00
|
|
|
[![asciicast](https://asciinema.org/a/ahDveBL1gs5t36z1myePtrKpR.svg)](https://asciinema.org/a/ahDveBL1gs5t36z1myePtrKpR)
|
2020-06-29 13:53:45 +03:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2020-11-01 23:32:31 +03:00
|
|
|
Stable version:
|
2020-07-29 04:01:19 +03:00
|
|
|
|
|
|
|
```
|
2020-11-01 23:32:31 +03:00
|
|
|
nix-env -i nix-tree
|
2020-07-29 04:01:19 +03:00
|
|
|
```
|
|
|
|
|
2020-11-01 23:32:31 +03:00
|
|
|
Development version (requires Nix with flake support):
|
2020-07-29 04:01:19 +03:00
|
|
|
|
2020-06-29 13:53:45 +03:00
|
|
|
```
|
2020-11-01 23:32:31 +03:00
|
|
|
nix profile install github:utdemir/nix-tree
|
2020-07-02 00:24:45 +03:00
|
|
|
```
|
|
|
|
|
2020-06-29 13:53:45 +03:00
|
|
|
## Usage
|
|
|
|
|
2020-06-25 01:47:16 +03:00
|
|
|
```
|
2020-07-02 11:55:56 +03:00
|
|
|
$ nix-tree --help
|
|
|
|
nix-tree --help
|
|
|
|
Usage: nix-tree [paths] [-h|--help]
|
2020-07-01 09:34:37 +03:00
|
|
|
Paths default to $HOME/.nix-profile and /var/run/current-system.
|
|
|
|
Keybindings:
|
|
|
|
hjkl/Arrow Keys : Navigate
|
|
|
|
q/Esc: : Quit / close modal
|
|
|
|
w : Open why-depends mode
|
2020-08-22 13:37:06 +03:00
|
|
|
/ : Open search mode
|
2020-08-23 01:38:34 +03:00
|
|
|
i : Toggle modeline
|
2020-07-01 09:34:37 +03:00
|
|
|
? : Show help
|
2020-06-25 01:47:16 +03:00
|
|
|
```
|
2020-07-02 00:24:45 +03:00
|
|
|
|
|
|
|
[home-manager]: https://github.com/rycee/home-manager
|
2020-07-02 10:55:36 +03:00
|
|
|
|
2020-11-01 23:32:31 +03:00
|
|
|
## Hacking
|
|
|
|
|
|
|
|
All contributions, issues and feature requests are welcome.
|
|
|
|
|
2020-11-27 01:11:19 +03:00
|
|
|
To hack on it, simply run `nix-shell` (or `nix develop`) and use `cabal` as usual.
|
2020-11-01 23:32:31 +03:00
|
|
|
|
2020-07-02 10:55:36 +03:00
|
|
|
# Related tools
|
|
|
|
|
|
|
|
* [nix-du](https://github.com/symphorien/nix-du)
|
2020-07-02 11:55:56 +03:00
|
|
|
* [nix-query-tree-viewer](https://github.com/cdepillabout/nix-query-tree-viewer)
|
|
|
|
* [nix-visualize](https://github.com/craigmbooth/nix-visualize)
|