blob: fb9f05a74235ca1d1a213e2c889fe0719db7b7db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# treeimp
`treeimp` vendors directories (imports trees) from remote Git repositories.
Sources and destinations are declared in `treeimp.nix`; each source may
also be transformed by a Nix function before it is copied into place.
Run `treeimp init` to create an example configuration:
```nix
{
example = {
url = "https://git.example.com/example.git";
ref = "main";
source = "path/to/directory";
destination = "vendor/example";
transform = source: source;
};
}
```
Run `treeimp sync` to import the configured sources. For each source,
`treeimp.lock` records the last commit that changed its configured source
directory, along with that commit's date in UTC. Commits that do not change
the configured source directory leave the lock entry and destination unchanged.
|