5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
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)
|
|
(lib.cmakeBool "PORTABLE_MODE" false)
|
|
];
|
|
|
|
meta = {
|
|
description = "Cycle-accurate Nintendo Game Boy Advance emulator";
|
|
homepage = "https://github.com/nba-emu/NanoBoyAdvance";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "NanoBoyAdvance";
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|