2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, cairo
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ffmpeg
|
|
|
|
, gettext
|
|
|
|
, 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";
|
|
|
|
version = "2.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "visualboyadvance-m";
|
|
|
|
repo = "visualboyadvance-m";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kgpbvng3c12ws0dy92zc0azd94h0i3j4vm7b67zc8mi3pqsppdg";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
ffmpeg
|
|
|
|
gettext
|
|
|
|
libGLU libGL
|
|
|
|
openal
|
|
|
|
SDL2
|
|
|
|
sfml
|
|
|
|
zip
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE='Release'"
|
|
|
|
"-DENABLE_FFMPEG='true'"
|
|
|
|
"-DENABLE_LINK='true'"
|
|
|
|
"-DSYSCONFDIR=etc"
|
|
|
|
"-DENABLE_WX='false'"
|
|
|
|
"-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;
|
|
|
|
maintainers = with maintainers; [ lassulus ];
|
|
|
|
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
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
|
|
|
};
|
|
|
|
}
|