stores can also delete objects

This commit is contained in:
Valentin Gagarin 2022-04-29 00:58:40 +02:00
parent 5fda995491
commit 07d490fd89

View file

@ -4,7 +4,7 @@ A Nix store is a collection of [store objects](objects.md) with associated opera
These store objects can hold arbitrary data, and Nix makes no distinction if they are used as build inputs, build results, or build plans. These store objects can hold arbitrary data, and Nix makes no distinction if they are used as build inputs, build results, or build plans.
A Nix store allows adding and retrieving store objects. A Nix store allows adding, retrieving, and deleting store objects.
It can perform builds, that is, transform build inputs using instructions from the build plans into build outputs. It can perform builds, that is, transform build inputs using instructions from the build plans into build outputs.
It also keeps track of *references* between data and can therefore garbage-collect unused store objects. It also keeps track of *references* between data and can therefore garbage-collect unused store objects.