Roger Qiu CMCDragonkai
|# show the output paths of a derivation|
|nix-store --query --outputs $(nix-instantiate)|
|# show the immediate dependencies of a derivation|
|nix-store --query --references $(nix-instantiate)|
|# show the transitive dependencies of a derivation|
|nix-store --query --requisites $(nix-instantiate)|
|# show the dependers of a store-path|
|nix-store --query --referrers $(nix-instantiate)|
The basic idea is that right now when pinning Nixpkgs, you pin into specific tar archives of Nix commits.
If instead you could just point to some virtual address that resolved to a checkout of a specific commit.
Then each NixOS system would just maintain a nixpkgs checkout. And then you could just address an arbitrary commit. And it would virtually hand over all the files.
A git virtual filesystem would be needed. Right now each NixOS already sort of synchronizes against the nixpkgs.
But as channels instead of commit based, and not actually using Git at all.