diff options
| author | seth <[email protected]> | 2023-05-12 06:27:50 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-12 06:28:22 -0400 |
| commit | 6c816508fbfc876cf1cc389eb8bb800553a8e2f9 (patch) | |
| tree | 862296fd153d74ae98f339d95f8d78850530e765 /README.md | |
| parent | 5ad5d2c1a03488e479c39859f4c900d1495109e3 (diff) | |
docs: add maintainer guide to document more advanced functions
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -75,6 +75,40 @@ packwiz2nix is quick to set up, all you have to do is add this to the `apps` att An example of this can be found in my [personal modpack](https://github.com/getchoo/modpack/blob/main/flake.nix) +## Maintainer Guide + +packwiz2nix also offers some more advanced features if maintainers wish to integrate +this project further into their distribution. + +### Create traditional modpacks + +One of these features is the ability to create traditional modpacks anyone can use. So far, +only modpacks for MultiMC and Prism Launcher are supported. + +#### MultiMC/Prism Launcher + +`mkMultiMCPack` allows you to create a package attribute that will result in a zipfile any user of +Prism Launcher and MultiMC can import. For example: + +```nix +{ + packages = let + inherit (packwiz2nix.lib) mkMultiMCPack mkPackwizPackages; + mods = mkPackwizPackages pkgs ./checksums.json; + in rec { + myModpack = mkMultiMCPack { + inherit pkgs mods; + # optionally include external + # files in modpack + filesDir = ./files; + name = "myModpack"; + }; + + default = myModpack; + }; +} +``` + ## Gotchas! There are two main things you should keep in mind with this project currently: |
