News for hackers. Stuff that matters.
Re:Nix journey part 0: Learning and reference materials by ghostwriter on Thursday March 02, 2023 @06:31AM (#34994538)
> No easy way to see dependencies without viewing the package derivation source code.

nix-store -qR `which python`

> No easy way to see "reverse" dependencies, period, as far as I am aware, short of basically grepping the entire nixpkgs repo, and even then you won't get a totally accurate answer.

nix-store -q --referrers `which python`

This and many other querying commands are explained in the Command Reference of Nix manual. Have you read it? [1]

[1] https://nixos.org/manual/nix/stable/command-ref/nix-store.ht...

There are no comments on this comment yet.