Skip to content

Commit

Permalink
lime3ds: 2117.1 -> 2118 (NixOS#340394)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored Sep 19, 2024
2 parents e65d221 + c27e90c commit 47c3c65
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkgs/by-name/li/lime3ds/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
inherit (lib) optional optionals cmakeBool optionalString getLib makeLibraryPath;
in stdenv.mkDerivation (finalAttrs: {
pname = "lime3ds";
version = "2117.1";
version = "2118";

src = fetchzip {
url = "https://github.com/Lime3DS/Lime3DS/releases/download/${finalAttrs.version}/lime3ds-unified-source-${finalAttrs.version}.tar.xz";
hash = "sha256-v6AHzbuk5n55nTDO0UndtmdhovfY4kngC5TJaNIV5S4=";
hash = "sha256-Dt0YKWj+yLUic1F7uOxfWPYlPda3snTUPwFbn23i2rY=";
};

nativeBuildInputs = [
Expand Down Expand Up @@ -109,7 +109,7 @@ in stdenv.mkDerivation (finalAttrs: {
postInstall = let
libs = makeLibraryPath [ vulkan-loader ];
in optionalString enableSdl2Frontend ''
for binfile in lime3ds-gui lime3ds-cli lime3ds-room
for binfile in lime3ds lime3ds-room
do
wrapProgram "$out/bin/$binfile" \
--prefix LD_LIBRARY_PATH : ${libs}
Expand All @@ -121,25 +121,27 @@ in stdenv.mkDerivation (finalAttrs: {
'';

cmakeFlags = [
(cmakeBool "CITRA_USE_PRECOMPILED_HEADERS" false)
(cmakeBool "ENABLE_QT_TRANSLATION" enableQtTranslations)
(cmakeBool "LIME3DS_USE_PRECOMPILED_HEADERS" false)
(cmakeBool "USE_SYSTEM_LIBS" true)
(cmakeBool "DISABLE_SYSTEM_DYNARMIC" true)
(cmakeBool "DISABLE_SYSTEM_GLSLANG" true)
(cmakeBool "DISABLE_SYSTEM_LODEPNG" true)
(cmakeBool "DISABLE_SYSTEM_VMA" true)
(cmakeBool "DISABLE_SYSTEM_XBYAK" true)
(cmakeBool "ENABLE_QT" enableQt)
(cmakeBool "ENABLE_SDL2_FRONTEND" enableSdl2Frontend)
(cmakeBool "ENABLE_CUBEB" enableCubeb)
(cmakeBool "USE_DISCORD_PRESENCE" useDiscordRichPresence)
] ++ optionals enableQt [
(cmakeBool "ENABLE_QT_TRANSLATION" enableQtTranslations)
];

meta = {
description = "A Nintendo 3DS emulator based on Citra";
homepage = "https://github.com/Lime3DS/Lime3DS";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ arthsmn ];
mainProgram = if enableQt then "lime3ds-gui" else "lime3ds-cli";
mainProgram = "lime3ds";
platforms = lib.platforms.linux;
};
})

0 comments on commit 47c3c65

Please sign in to comment.