Updated naming to include the word Modpack

This commit is contained in:
Jan-Bulthuis 2025-05-18 11:07:29 +02:00
parent 8a22b471bb
commit a093625c28
4 changed files with 13 additions and 9 deletions

View File

@ -5,7 +5,7 @@ Create a modpack server or MultiMC client from a packwiz toml.
## Creating a server
A server derivation can be created as follows:
```nix
nix-modpack.packages.${system}.mkServer {
nix-modpack.packages.${system}.mkModpackServer {
packUrl = "<url to pack.toml>";
server = nix-minecraft.legacyPackages.${system}.${server}
}
@ -15,7 +15,7 @@ When this is added as a package to a flake, it can be started with `nix run`.
## Creating a client
A client derivation can be created as follows:
```nix
nix-modpack.packages.${system}.mkClient {
nix-modpack.packages.${system}.mkModpackClient {
packUrl = "<url to pack.toml>";
gameVersion = "<minecraft version>";
loaderUid = "<loader identifier>";

View File

@ -11,9 +11,8 @@
lib = inputs.nixpkgs.lib;
eachSystem =
fn: lib.genAttrs lib.systems.flakeExposed (system: fn (import inputs.nixpkgs { inherit system; }));
in
{
packages = eachSystem (
mkPackages =
pkgs:
let
bootstrap = pkgs.fetchurl {
@ -22,9 +21,14 @@
};
in
{
mkServer = pkgs.callPackage ./packages/mkServer.nix { inherit bootstrap; };
mkClient = pkgs.callPackage ./packages/mkClient.nix { inherit bootstrap; };
}
);
mkModpackServer = pkgs.callPackage ./packages/mkModpackServer.nix { inherit bootstrap; };
mkModpackClient = pkgs.callPackage ./packages/mkModpackClient.nix { inherit bootstrap; };
};
in
rec {
packages = eachSystem mkPackages;
overlay = overlays.default;
overlays.default = final: mkPackages;
};
}