about summary refs log tree commit diff
path: root/mk/libraries.mk
diff options
context:
space:
mode:
authorSpencer Baugh <sbaugh@catern.com>2018-12-12T19·19-0500
committerSpencer Baugh <sbaugh@catern.com>2019-01-23T01·24+0000
commit5f1891b795c4c4daac5336d1ec60c94f521ede1d (patch)
tree449a2f56d286542cfc03434fde2e92ff89503f2b /mk/libraries.mk
parent92d08c02c84be34ec0df56ed718526c382845d1a (diff)
nix-store: make --dump-db take a list of paths to dump
Inside a derivation, exportReferencesGraph already provides a way to
dump the Nix database for a specific closure. On the command line,
--dump-db gave us the same information, but only for the entire Nix
database at once.

With this change, one can now pass a list of paths to --dump-db to get
the Nix database dumped for just those paths. (The user is responsible
for ensuring this is a closure, like for --export).

Among other things, this is useful for deploying a closure to a new
host without using --import/--export; one can use tar to transfer the
store paths, and --dump-db/--load-db to transfer the validity
information. This is useful if the new host doesn't actually have Nix
yet, and the closure that is being deployed itself contains Nix.
Diffstat (limited to 'mk/libraries.mk')
0 files changed, 0 insertions, 0 deletions