blob: 64e670614c1cdf9f2a5de43b12f81b46d00738cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
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 = "A 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;
};
})
|