depot/third_party/nixpkgs/pkgs/by-name/na/nanoboyadvance/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

66 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)
];
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;
};
})