#include #include #include #include using namespace nix; int get_closure(const char *path) { Path query(path); PathSet paths; auto store = openStore(false); computeFSClosure( *store, followLinksToStorePath(query), paths, false, true ); for (auto i = paths.begin(); i != paths.end(); ++i) { // TODO! } return 1; }