libtas: 1.4.5 -> 1.4.6 + several fixes (#433123)

authored by Yohann Boniface and committed by GitHub 9019c835 ae0ba2b2

+24 -4
+24 -4
pkgs/by-name/li/libtas/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 SDL2, 8 alsa-lib, 9 ffmpeg, 10 - lua5_3, 11 qt5, 12 file, 13 binutils, 14 makeDesktopItem, 15 }: 16 17 stdenv.mkDerivation (finalAttrs: { 18 pname = "libtas"; 19 - version = "1.4.5"; 20 21 src = fetchFromGitHub { 22 owner = "clementgallet"; 23 repo = "libTAS"; 24 rev = "v${finalAttrs.version}"; 25 - hash = "sha256-n4iaJG9k+/TFfGMDCYL83Z6paxpm/gY3thP9T84GeQU="; 26 }; 27 28 nativeBuildInputs = [ 29 autoreconfHook ··· 34 SDL2 35 alsa-lib 36 ffmpeg 37 - lua5_3 38 qt5.qtbase 39 ]; 40 ··· 58 ffmpeg 59 ] 60 } \ 61 --set-default LIBTAS_SO_PATH $out/lib/libtas.so 62 ''; 63
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + fetchurl, 6 autoreconfHook, 7 pkg-config, 8 SDL2, 9 alsa-lib, 10 ffmpeg, 11 + lua5_4, 12 qt5, 13 + xorg, 14 file, 15 binutils, 16 makeDesktopItem, 17 + 18 + # Forces libTAS to run in X11. 19 + # Enabled by default because libTAS does not support Wayland. 20 + withForceX11 ? true, 21 }: 22 23 stdenv.mkDerivation (finalAttrs: { 24 pname = "libtas"; 25 + version = "1.4.6"; 26 27 src = fetchFromGitHub { 28 owner = "clementgallet"; 29 repo = "libTAS"; 30 rev = "v${finalAttrs.version}"; 31 + hash = "sha256-/hyKJ8HGLN7hT+9If/lcp0C7GnhJMRpc7EKDgA1kQcI="; 32 }; 33 + patches = [ 34 + # Fixes `undefined symbol: SDL_Log` errors 35 + (fetchurl { 36 + url = "https://github.com/clementgallet/libTAS/commit/779ff0fb0f3accfc62949680d85ecf96b28d18ef.patch"; 37 + hash = "sha256-xAaTWIXt8FkMu6GE5mBWtLypROFZ1aEqmBTtG+6rTWk="; 38 + }) 39 + ]; 40 41 nativeBuildInputs = [ 42 autoreconfHook ··· 47 SDL2 48 alsa-lib 49 ffmpeg 50 + lua5_4 51 qt5.qtbase 52 ]; 53 ··· 71 ffmpeg 72 ] 73 } \ 74 + --suffix LD_LIBRARY_PATH : ${ 75 + lib.makeLibraryPath [ 76 + xorg.libXi 77 + ffmpeg.lib 78 + ] 79 + } \ 80 + ${lib.optionalString withForceX11 "--set QT_QPA_PLATFORM xcb"} \ 81 --set-default LIBTAS_SO_PATH $out/lib/libtas.so 82 ''; 83