1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00
digga/doc/integrations/nvfetcher.md

49 lines
1.4 KiB
Markdown
Raw Normal View History

2021-06-17 01:25:37 +03:00
# nvfetcher
2022-11-08 17:06:32 +03:00
2021-06-17 01:25:37 +03:00
[NvFetcher][nvf] is a workflow companion for updating nix sources.
You can specify an origin source and an update configuration, and
nvfetcher can for example track updates to a specific branch and
automatically update your nix sources configuration on each run
to the tip of that branch.
All package source declaration is done in [sources.toml][sources.toml].
From within the devshell of this repo, run `nvfetcher`, a wrapped
version of `nvfetcher` that knows where to find and place its files
and commit the results.
## Usage
Statically fetching (not tracking) a particular tag from a github repo:
2022-11-08 17:06:32 +03:00
2021-06-17 01:25:37 +03:00
```toml
[manix]
src.manual = "v0.6.3"
fetch.github = "mlvzk/manix"
```
Tracking the latest github _release_ from a github repo:
2022-11-08 17:06:32 +03:00
2021-06-17 01:25:37 +03:00
```toml
[manix]
src.github = "mlvzk/manix" # responsible for tracking
fetch.github = "mlvzk/manix" # responsible for fetching
```
Tracking the latest commit of a git repository and fetch from a git repo:
2022-11-08 17:06:32 +03:00
2021-06-17 01:25:37 +03:00
```toml
[manix]
src.git = "https://github.com/mlvzk/manix.git" # responsible for tracking
fetch.git = "https://github.com/mlvzk/manix.git" # responsible for fetching
```
> ##### _Note:_
2022-11-08 17:06:32 +03:00
>
2021-06-17 01:25:37 +03:00
> Please refer to the [NvFetcher Readme][nvf-readme] for more options.
[nvf]: https://github.com/berberman/nvfetcher
2021-06-17 01:25:37 +03:00
[nvf-readme]: https://github.com/berberman/nvfetcher#readme
[sources.toml]: https://github.com/divnix/devos/tree/main/pkgs/sources.toml