Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
106 lines
2.0 KiB
Nix
106 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
unstableGitUpdater,
|
|
|
|
# Native Build Inputs
|
|
cmake,
|
|
python3,
|
|
pkg-config,
|
|
|
|
# Build Inputs
|
|
xorg,
|
|
wayland,
|
|
libxkbcommon,
|
|
wayland-protocols,
|
|
glew,
|
|
qt6,
|
|
mesa,
|
|
alsa-lib,
|
|
sdl3,
|
|
iniparser,
|
|
|
|
# Options
|
|
imguiDebug ? false,
|
|
addrSan ? false,
|
|
emscriptenHost ? "",
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
strictDeps = true;
|
|
name = "isle-portable";
|
|
version = "0-unstable-2025-09-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "isledecomp";
|
|
repo = "isle-portable";
|
|
rev = "d890e3db58a898dbcea9ae801f5346308b4b62ea";
|
|
hash = "sha256-LRpyO7XoIJuMf6KzCNWBRkRxxUu5+kru0ufYLl0zDcM=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace packaging/macos/CMakeLists.txt \
|
|
--replace-fail "fixup_bundle" "#fixup_bundle"
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"lib"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
qt6.wrapQtAppsHook
|
|
python3
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
qt6.qtbase
|
|
sdl3
|
|
iniparser
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
xorg.libX11
|
|
xorg.libXext
|
|
xorg.libXrandr
|
|
xorg.libXrender
|
|
xorg.libXfixes
|
|
xorg.libXi
|
|
xorg.libXinerama
|
|
xorg.libXcursor
|
|
wayland
|
|
libxkbcommon
|
|
wayland-protocols
|
|
glew
|
|
mesa
|
|
alsa-lib
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "DOWNLOAD_DEPENDENCIES" false)
|
|
(lib.cmakeBool "ISLE_DEBUG" imguiDebug)
|
|
(lib.cmakeFeature "ISLE_EMSCRIPTEN_HOST" emscriptenHost)
|
|
];
|
|
|
|
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
|
|
|
|
meta = {
|
|
description = "Portable decompilation of Lego Island";
|
|
homepage = "https://github.com/isledecomp/isle-portable";
|
|
license = with lib.licenses; [
|
|
# The original code for the portable project
|
|
lgpl3Plus
|
|
# The decompilation code
|
|
mit
|
|
unfree
|
|
];
|
|
platforms = with lib.platforms; windows ++ linux ++ darwin;
|
|
mainProgram = "isle";
|
|
maintainers = with lib.maintainers; [
|
|
RossSmyth
|
|
];
|
|
};
|
|
})
|