2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
substituteAll,
|
|
|
|
cmake,
|
|
|
|
python3Packages,
|
|
|
|
libsForQt5,
|
|
|
|
SDL2,
|
|
|
|
fmt,
|
|
|
|
toml11,
|
|
|
|
libunarr,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "nanoboyadvance";
|
|
|
|
version = "1.8.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nba-emu";
|
|
|
|
repo = "NanoBoyAdvance";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-du3dPTg3OxNTWXDQo2m9W0rJxtrkn+lQSh/XGiu/eGg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./dont-fetch-glad.patch;
|
|
|
|
gladSrc = fetchFromGitHub {
|
|
|
|
owner = "Dav1dde";
|
|
|
|
repo = "glad";
|
|
|
|
rev = "v2.0.5";
|
|
|
|
hash = "sha256-Ba7nbd0DxDHfNXXu9DLfnxTQTiJIQYSES9CP5Bfq4K0=";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
python3Packages.jinja2
|
|
|
|
libsForQt5.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsForQt5.qtbase
|
|
|
|
SDL2
|
|
|
|
fmt
|
|
|
|
toml11
|
|
|
|
libunarr
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "USE_SYSTEM_FMT" true)
|
|
|
|
(lib.cmakeBool "USE_SYSTEM_TOML11" true)
|
|
|
|
(lib.cmakeBool "USE_SYSTEM_UNARR" true)
|
2024-07-31 10:19:44 +00:00
|
|
|
(lib.cmakeBool "PORTABLE_MODE" false)
|
2024-05-15 15:35:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cycle-accurate Nintendo Game Boy Advance emulator";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/nba-emu/NanoBoyAdvance";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "NanoBoyAdvance";
|
|
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
})
|