2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, cairo
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
2021-05-20 23:08:51 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, ffmpeg
|
|
|
|
, gettext
|
2022-12-17 10:02:37 +00:00
|
|
|
, wxGTK32
|
|
|
|
, gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libGLU, libGL
|
|
|
|
, openal
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, SDL2
|
|
|
|
, sfml
|
|
|
|
, zip
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "visualboyadvance-m";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "visualboyadvance-m";
|
|
|
|
repo = "visualboyadvance-m";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "1fph8phbswq6d9lgw1y1767wdp316w5hn5bws6h2dj75gvsqf221";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
ffmpeg
|
|
|
|
gettext
|
2022-12-17 10:02:37 +00:00
|
|
|
libGLU
|
|
|
|
libGL
|
2020-04-24 23:36:52 +00:00
|
|
|
openal
|
|
|
|
SDL2
|
|
|
|
sfml
|
|
|
|
zip
|
|
|
|
zlib
|
2022-12-17 10:02:37 +00:00
|
|
|
wxGTK32
|
|
|
|
gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE='Release'"
|
|
|
|
"-DENABLE_FFMPEG='true'"
|
|
|
|
"-DENABLE_LINK='true'"
|
|
|
|
"-DSYSCONFDIR=etc"
|
|
|
|
"-DENABLE_SDL='true'"
|
|
|
|
];
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A merge of the original Visual Boy Advance forks";
|
|
|
|
license = licenses.gpl2;
|
2022-12-17 10:02:37 +00:00
|
|
|
maintainers = with maintainers; [ lassulus netali ];
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://vba-m.com/";
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|