gjz010 / touhou-on-nixos

5 stars 2 forks source link

Touhou on NixOS

Packaging Touhou project and utilities into deterministic derivation.

Usage

  1. Bring your own Touhou game, for example th06. Note that you should use a clean copy, e.g. the one you use for thcrap. Your Touhou game will not go into Nix store, but will be bind-mounted into bubblewrapped environment.
  2. Switch to game root and nix run github:gjz010/touhou-on-nixos#zh_CN.th06.

Known issues

TODO list

Thcrap patches from thpatch.net

(20241011 notes: while lilywhite.cc provides fast downloading for Chinese users, some important metadata files like tpZHCNex/tsa/patch.js adds it as "first server of patch", which is then used to fetch patch.js. We have no way but to add lilywhite.cc to the whitelist.)

One possible solution to all the dirty issues above is to create and maintain a content-addressable mirror (e.g. like a git repository) by ourselves. We could even create our own metadata during sync with thpatch, such that thcrap2nix is only needed to be run by CI, and touhou-on-nixos users can use generated thcrap patch derivations.

Possible problems: