forked from lix-project/lix
8846465934
Renamed `fstateRefs' to `fstateRequisites'. The semantics of this function is that it returns a list of all paths necessary to realise a given expression. For a derive expression, this is the union of requisites of the inputs; for a slice expression, it is the path of each element in the slice. Also included are the paths of the expressions themselves. Optionally, one can also include the requisites of successor expressions (to recycle intermediate results). * `nix-switch' now distinguishes between an expression and its normal form. Usually, only the normal form is registered as a root of the garbage collector. With the `--source-root' flag, it will also register the original expression as a root. * `nix-collect-garbage' now has a flag `--keep-successors' which causes successors not to be included in the list of garbage paths. * `nix-collect-garbage' now has a flag `--invert' which will print all paths that should *not* be garbage collected.
37 lines
996 B
Plaintext
37 lines
996 B
Plaintext
nix [OPTIONS...] [ARGUMENTS...]
|
|
|
|
Operations:
|
|
|
|
--install / -i: realise an fstate
|
|
--delete / -d: delete paths from the Nix store
|
|
--add / -A: copy a path to the Nix store
|
|
--query / -q: query information
|
|
|
|
--successor: register a successor expression
|
|
--substitute: register a substitute expression
|
|
|
|
--dump: dump a path as a Nix archive
|
|
--restore: restore a path from a Nix archive
|
|
|
|
--init: initialise the Nix database
|
|
--verify: verify Nix structures
|
|
|
|
--version: output version information
|
|
--help: display help
|
|
|
|
Source selection for --install, --dump:
|
|
|
|
--path / -p: by file name !!! -> path
|
|
|
|
Query flags:
|
|
|
|
--list / -l: query the output paths (roots) of an fstate (default)
|
|
--requisites / -r: print all paths necessary to realise expression
|
|
--generators / -g: find expressions producing a subset of given ids
|
|
--expansion / -e: print a path containing id
|
|
--graph: print a dot graph rooted at given ids
|
|
|
|
Options:
|
|
|
|
--verbose / -v: verbose operation (may be repeated)
|