Super simple flake input vendoring
Find a file
2025-07-26 15:39:07 +02:00
.gitignore init 2025-07-25 23:45:21 +02:00
flake.lock init 2025-07-25 23:45:21 +02:00
flake.nix fixes 2025-07-26 15:39:07 +02:00
flendor fixes 2025-07-26 15:39:07 +02:00
package.nix fixes 2025-07-26 15:39:07 +02:00
README.md fixes 2025-07-26 15:39:07 +02:00

flendor

Super simple flake input vendoring.

Example flendor.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.