From 3489a438d48b73ae87dd1549e662cc188ea106da Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 5 Aug 2024 22:32:34 +0100 Subject: [PATCH] ut1999: fix library search paths on x86_64-linux Without the change the game fails to start as it fails to find it's shared objects as: $ NIXPKGS_ALLOW_UNFREE=1 nix build -f. ut1999 && ./result/bin/ut1999 Object not found: Class Render.Render History: UObject::SafeLoadError <- UObject::StaticLoadClass <- UGameEngine::Init <- InitEngine <- main Exiting due to error After the change the game starts without problems. --- pkgs/by-name/ut/ut1999/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ut/ut1999/package.nix b/pkgs/by-name/ut/ut1999/package.nix index 2e2652f41178..9604c4f51a53 100644 --- a/pkgs/by-name/ut/ut1999/package.nix +++ b/pkgs/by-name/ut/ut1999/package.nix @@ -102,8 +102,9 @@ in stdenv.mkDerivation { runHook postInstall ''; - # .so files in the SystemARM64 directory are not loaded properly on aarch64-linux - appendRunpaths = lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [ + # Bring in game's .so files into lookup. Otherwise game fails to start + # as: `Object not found: Class Render.Render` + appendRunpaths = [ "${placeholder "out"}/${systemDir}" ];