flendor/README.md
2025-07-26 16:16:08 +02:00

40 lines
1.8 KiB
Markdown

# flendor
Super simple flake input vendoring.
Example `flendor.json`:
```json
{
"vendor": "vendor",
"flakes": {
"musicomp": "git+https://forgejo.helveticanonstandard.net/helvetica/musicomp.git",
"hxwrap": "git+https://forgejo.helveticanonstandard.net/helvetica/hxwrap.git",
"myphps": "git+https://forgejo.helveticanonstandard.net/helvetica/myphps.git",
"forgesync": "git+https://forgejo.helveticanonstandard.net/helvetica/forgesync.git",
"nini": "git+https://forgejo.helveticanonstandard.net/helvetica/nini.git",
"xenumenu": "git+https://forgejo.helveticanonstandard.net/helvetica/xenumenu.git",
"mympv": "git+https://forgejo.helveticanonstandard.net/helvetica/mympv.git"
}
}
```
Example usage:
```
$ ./flendor
./flendor: copying flake git+https://forgejo.helveticanonstandard.net/helvetica/forgesync.git to vendor/forgesync
./flendor: copying flake git+https://forgejo.helveticanonstandard.net/helvetica/hxwrap.git to vendor/hxwrap
./flendor: copying flake git+https://forgejo.helveticanonstandard.net/helvetica/musicomp.git to vendor/musicomp
./flendor: copying flake git+https://forgejo.helveticanonstandard.net/helvetica/mympv.git to vendor/mympv
./flendor: copying flake git+https://forgejo.helveticanonstandard.net/helvetica/myphps.git to vendor/myphps
./flendor: copying flake git+https://forgejo.helveticanonstandard.net/helvetica/nini.git to vendor/nini
./flendor: copying flake git+https://forgejo.helveticanonstandard.net/helvetica/xenumenu.git to vendor/xenumenu
./flendor: removing old flake at vendor/asdf
./flendor: removing old flake at vendor/hjkl
```
## Why?
I don't know.
I personally just use this to vendor my own flakes in my NixOS configuration, so that if my Forgejo server ever stops working, I still have the possibility to rebuild its configuration without much hassle.