diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-13 18:51:48 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-13 18:51:48 +0100 |
commit | 2e72776bc90247b3bae0f178d149b039059ab604 (patch) | |
tree | a32c6e8ca3acf693a4a63423e1059f6dea4c7197 /modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix | |
parent | Cleanup, printing on desktop (diff) | |
download | Rory-Open-Architecture-2e72776bc90247b3bae0f178d149b039059ab604.tar.xz |
Update packages
Diffstat (limited to 'modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix')
-rw-r--r-- | modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix b/modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix new file mode 100644 index 0000000..e150b7f --- /dev/null +++ b/modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix @@ -0,0 +1,36 @@ +{ lib, stdenv, pkgs, jdk17, makeWrapper }: + +let + url = "https://mediafilez.forgecdn.net/files/4824/587/Techopolis_2_server_pack.zip"; + hash = "sha256-4Ig4v8c14kxzJFeHPYv/w44c0/KkayoFc3rOuxxB+9s="; + name = "techopolis-2"; + version = "5.4"; + +in stdenv.mkDerivation { + name = name; + + #sources + src = pkgs.fetchzip { + url = url; + stripRoot = false; + hash = hash; + name = "server"; + }; + forgeJar = import ../../../../modloaders/forge/1.19.2/43.2.11.nix; + + phases = [ + "unpackPhase" + "installPhase" + ]; + buildInputs = [ jdk17 makeWrapper ]; + installPhase = '' + ls -lah + # Create the wrapper script + mkdir -p $out/bin + mkdir -p $out/lib + cp -r * $out/lib + makeWrapper ${jdk17}/bin/java $out/bin/mc-${name}-${version}-server \ + --set JAVA_HOME ${jdk17} \ + --add-args "-Dlog4j2.formatMsgNoLookups=true" + ''; +} |