From 6944ac33e31ee083492a84968ea2f838736f95b2 Mon Sep 17 00:00:00 2001 From: Sasza Stanczew Date: Mon, 16 Feb 2026 13:47:58 +0100 Subject: [PATCH] reformat komentarzy, i plik desktop --- modules/tibia.nix | 76 +++++++++++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 29 deletions(-) diff --git a/modules/tibia.nix b/modules/tibia.nix index a36ac6c..dd2cfaa 100644 --- a/modules/tibia.nix +++ b/modules/tibia.nix @@ -1,7 +1,9 @@ { config, pkgs, lib, ... }: let - # Legacy libxml2 (2.9.x) — required by Tibia + # ──────────────────────────────────────────────────────────────── + # Legacy libxml2 (2.9.x) — Tibia requires libxml2.so.2 + # ──────────────────────────────────────────────────────────────── libxml2_2_9 = pkgs.stdenv.mkDerivation { pname = "libxml2-2.9"; version = "2.9.14"; @@ -22,28 +24,32 @@ let enableParallelBuilding = true; }; + # ──────────────────────────────────────────────────────────────── # Centralized runtime library path for Tibia - tibiaLibPath = - lib.makeLibraryPath [ - pkgs.nss - pkgs.nspr - pkgs.libxkbfile - libxml2_2_9 - ]; + # ──────────────────────────────────────────────────────────────── + tibiaLibPath = lib.makeLibraryPath [ + pkgs.nss + pkgs.nspr + pkgs.libxkbfile + libxml2_2_9 + ]; - # Helper: LD_LIBRARY_PATH export line exportLibs = '' export LD_LIBRARY_PATH="${tibiaLibPath}:$LD_LIBRARY_PATH" ''; - # Wrapper for the real client (system-wide) + # ──────────────────────────────────────────────────────────────── + # System-wide wrapper for the Tibia client binary + # ──────────────────────────────────────────────────────────────── tibiaClientWrapper = pkgs.writeShellScriptBin "tibia-client" '' #!/usr/bin/env bash ${exportLibs} exec steam-run "$HOME/.local/share/CipSoft GmbH/Tibia/packages/Tibia/bin/client" "$@" ''; - # Patcher for Tibia's package.json + # ──────────────────────────────────────────────────────────────── + # Patcher for Tibia's package.json (launcher → wrapper redirect) + # ──────────────────────────────────────────────────────────────── tibiaPatcher = pkgs.writeShellScriptBin "tibia-patch" '' #!/usr/bin/env bash set -e @@ -57,7 +63,6 @@ let exit 0 fi - # Create wrapper inside Tibia package directory cat > "$LOCALWRAPPER" <