Tool Open source

nix-graph

nix-graph is an interactive terminal user-interface viewer for Nix dependency graphs, written in pure Go with no dependencies beyond Nix at runtime. It runs `nix path-info` and renders a target's store-path closure as an expandable tree.

View repository Mentioned in 1 video ↓

Overview

The viewer supports sorting, filtering, NAR size, closure size, and added-size columns, and can inspect store paths, profiles, the current system, and derivation build-time graphs. Its reverse view flips the tree at a selected node to show which packages depend on it. It can be run directly with `nix run`, installed in a Nix profile or flake, or invoked as `nix-graph [path]`; the default path is `/run/current-system`.

What nix-graph is used for

1 use taken from transcripts — each links to the moment in the video.

  • Explores Nix dependencies in the terminal and displays what depends on a package as an expandable tree. It supports sorting, filtering, size columns, and inspection of system, profile, and derivation build dependencies.

Videos mentioning nix-graph

1 in the library.