From 44b2c28900a9b4cf56d0e851f1c5a1d4335b0af4 Mon Sep 17 00:00:00 2001 From: Rebecca Kelly Date: Mon, 25 Aug 2025 19:10:45 -0400 Subject: [PATCH] tic-80: use lua5_3_compat instead of lua5_3 This is an alternate build of lua 5.3 that enables (at compile time) backwards compatibility for some 5.1/5.2 features that are otherwise removed in 5.3. TIC-80 expects these compatibility shims to be present and some TIC-80 games require them to function. The normal TIC-80 build enables this in its vendored copy of lua, but the Nix build turns on `PREFER_SYSTEM_LIBRARIES`, which means we need to enable the compatibility shims in the Lua package we pass to it. --- pkgs/by-name/ti/tic-80/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ti/tic-80/package.nix b/pkgs/by-name/ti/tic-80/package.nix index c42152b9f97b..d2bf8d043fb5 100644 --- a/pkgs/by-name/ti/tic-80/package.nix +++ b/pkgs/by-name/ti/tic-80/package.nix @@ -11,7 +11,7 @@ libGLU, libX11, janet, - lua5_3, + lua5_3_compat, quickjs, SDL2, # Whether to build TIC-80's "Pro" version, which is an incentive to support the project financially, @@ -85,7 +85,7 @@ stdenv.mkDerivation { libGLU libX11 janet - (lua5_3.withPackages (ps: [ ps.fennel ])) + (lua5_3_compat.withPackages (ps: [ ps.fennel ])) quickjs SDL2 ];