blob: 11330a9c0d84037e05998c12a43c00748af8667a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <nix/util.hh>
#include <nix/local-store.hh>
#include <nix/store-api.hh>
#include <nix/misc.hh>
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;
}
|