1 Matching Annotations
- Apr 2020
nix path-info shows information about store paths, replacing nix-store -q. A useful feature is the option --closure-size (-S). For example, the following command show the closure sizes of every path in the current NixOS system closure, sorted by size: nix path-info -rS /run/current-system | sort -nk2
The Nixpkgs pull request template has a checkbox "Determined the impact on package closure size (by running
nix path-info -Sbefore and after)" but there is only 4 instances of
path-infoin the Nix manual (and none in the Nixpkgs manual).
path-info query information about store paths
so the command works at the bottom but what switches are available for example? From the examples,
-Sis valid but where are they documented?
nix path-info -rS $(readlink -f $(which vim))